Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a Script to toggle a Script in ServerScriptService?

Asked by
CW6W 0
2 years ago

So I've made a Gui that adds Ranks into the game but I don't want them to stack so I made a script that Disables the Rank script in ServerScriptService, but because I'm not much of a Scripter I don't really know what to do or fix because I just get an error. I'm basically trying to make it so when a button is Clicked the script in the button turns true/false on the Disabled feature

script.Parent.MouseButton1Click:Connect(function() -- Detect button click
    game.ServerScriptServer.EarlyBird_TAG.Disabled = false -- Turns Disabled to false
end)

I know it isn't simple so I know I missed something, I've already tried google and DevForums but I just can't tweak it. Any help?

0
MouseButton1Click is for the PlayerMouse instance, try MouseClick instead RAFA1608 543 — 2y

Answer this question