This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Players = game:GetService("Players") | |
local TextService = game:GetService("TextService") | |
local HttpService = game:GetService("HttpService") | |
local DataStoreService = game:GetService("DataStoreService") | |
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local FormRemote = Instance.new("RemoteFunction") | |
FormRemote.Name = "FormRemote" | |
FormRemote.Parent = ReplicatedStorage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
-- Authors: ΣTΞCH (SigmaTech) | |
-- May 02, 2024 | |
--[[ | |
BasicMoveToolController.lua | |
(PURPOSE OF THIS FILE) | |
[API] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Written by SigmaTech | |
# Beat a Computer Science graduate at desigining this algorithm at the same start time | |
# Make sure that the columns of M1 match the rows of M2 | |
# Create an answer array M3 | |
# For each entry (array) of M1, | |
def getRowsColumns(V): | |
return (len(V), len(V[0])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
--October 07, 2022 | |
-- By SigmaTech | |
--[[ | |
BaseTool.lua | |
To provide a basic code foundation for all the tools in the game | |
Tools will inherit this base tool and add functionality on top of it. | |
[API] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- event Middleware | |
-- AvataX / OverHash | |
-- September 25, 2020 | |
-- Replicates actions to client via RemoteEvent | |
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local Network = ReplicatedStorage:FindFirstChild("Network") | |
local storeChangeEvent | |
if not Network then | |
local Folder = Instance.new("Folder") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local RPCService = {} | |
local moduleChildren = script:GetChildren() | |
function RPCService:Start() | |
for _, module in pairs(self.modules) do | |
local requiredFunction = require(module) | |
assert(typeof(requiredFunction) == "function", "The module " .. tostring(module) .. " did not return a function.") | |
self:ConnectClientEvent(module.Name, requiredFunction) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
SPHERICAL TO RECTANGULAR COORDINATES | |
This algorithm takes sphereical coordinates, which are helpful for defining spray patterns at a defined radius relative to the shooter, | |
and converts them to cartesian coordinates that Roblox can easilly understand and plot. | |
(https://www.mathworks.com/help/symbolic/transform-spherical-coordinates-and-plot.html) | |
Illustrations: | |
https://gyazo.com/bc7e68c8874bd063f76a2e72263f1109 | |
https://gyazo.com/2abe1234d04ed51eb1df045b36d59f0d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local CONE_HEIGHT = 10 | |
local CONE_ANGLE = 30 | |
local FREQUENCY = 10 | |
local theta = math.rad(CONE_ANGLE) | |
function f(z) | |
z = -z | |
local newPosition = Vector3.new( | |
math.tan(theta) * z * math.cos(FREQUENCY * z), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
This is a complete example of Roact-Rodux that will create a | |
TextButton that will increment its text when its .Activated event is fired! | |
]] | |
--Init | |
local RS = game:GetService("ReplicatedStorage") | |
local Roact = require(RS:WaitForChild("Roact")) | |
local Rodux = require(RS:WaitForChild("Rodux")) | |
local RoactRodux = require(RS:WaitForChild("RoactRodux")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
selection = game.Selection:Get() | |
local function quarantine(instance) | |
print("Destroying " .. instance.ClassName .. " named " .. instance.Name) | |
end | |
for i, v in pairs(selection) do | |
for i, descendant in pairs(v:GetDescendants()) do | |
if descendant:IsA("Script") then | |
if descendant.Name == "Vaccine" then |
NewerOlder