Okay but when i did it without the player thing it wouldn’t work
1 Like
That is because that was the wrong way. Why Roblox is designed like that, I don’t know.
It should be a localscript, things handled on the client should be a localscript or set it’s RunContext to Client
Try this!
local button = script.Parent
local GUI = button.Parent
button.MouseButton1Click:Connect(function()
GUI.Enabled = false
print("disabled")
--Whatever you want to happen next
end)
Hope this helps!
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.