What I mean by "variable function" is to have a premade function run. Ex:
function speed(p) game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 end script.Parent.MouseButton1Click:Connect(function() --- Here would run "speed" end
Sorta like how RemoteEvents Work
??????
function speed(p) game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 end script.Parent.MouseButton1Click:Connect(function() speed() -- ????? --game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 -- why dont you just set the speed in here? end
?????