Categories > Coding > Lua >
Toggles for a pl script
Posted
I recently started using a script I released
game:GetService("Players").LocalPlayer.PlayerGui.Home.fadeFrame.Visible = false
local Remote = game.Workspace.Remote['ItemHandler']
function onSpawn(char) char:WaitForChild("Humanoid", 2)
game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M4A1"].ITEMPICKUP)
game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
Remote:InvokeServer(game.Workspace.Prison_ITEMS.single:WaitForChild("Key card").ITEMPICKUP)
end
game:GetService("Players").LocalPlayer.CharacterAdded:Connect(onSpawn)
I wanted to know how I could make it toggleable like the scripts with;
_G.smth = true;
or
getgenv().smth = true;
Haylo/Enty
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post