I'm trying to disable a script inside of my tool using a Local Script but it isn't working. Any thoughts?

if game.Players.LocalPlayer:FindFirstChild("PlayerGui").ScreenGui.Energy.Yee.Swinginging.Value == 0 then
script.Parent.Server.Disabled = true
else script.Parent.Server.Disabled = false
end

6 comments

0

when you disable the script it will only disable it for that client this is your goal right?

0

Yes, i'm trying to disable the script that allows for my tool to fire once a certain condition is met.

0

You would have to use another script and remote events, but why are you trying to disable a script from a local script anyway? Surely there's a better way to do what you're trying to achieve.

0

If you know a better way, id love to know.

0

I would be able to give you a better way if you explain what you're trying to do and also provide both of your scripts.

0

I included the script above.