Help, this script wont enable after I disable it

You can make a system that when a bool value is false, the script you want to disable gets disabled. And when the value is true, the script gets enabled. Here’s a little script that will show an example

local enabled = script.BoolValue -- indexing the bool value

if enabled.Value == true then -- checking if the bool value is true
    -- your code here
end

I may not have explained really clearly, and I am sorry for that.

1 Like

Hm… I might test this later. This code seems very interesting.

1 Like

I think you might want to change the bottom part to

game.Players.PlayerAdded:Connect(function()
    Script.Disabled = false
end)

First, a script cannot get “localplayer” since it read game:GetService(“Players”) global.
Second, game.Players.PlayerAdded should be in a script within’ “ServerScriptService”