Categories > Coding > Lua >

Toggles for a pl script

Posts: 71

Threads: 6

Joined: Mar, 2021

Reputation: 1

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;

  • 0

Haylo/Enty

MINISHXP

[REDACTED]

Posts: 976

Threads: 3

Joined: Jan, 2021

Reputation: 9

Replied

@ribethings hes a pedo dont add him

 

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )