local this = script.Parent -- This is the Image Button --
game.Players.PlayerAdded:connect (function(plr)
local folder = Instance.new ("BoolValue",workspace)
folder.Name = (plr.Name .. "click")
folder.Value = false
if this.Activated then -- I don't want this to activate until the button is pressed --
folder.Value = true
end
end)
COMMUNITY QUESTION
Why is the if button clicked script firing and how do I fix it?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Use the button's click event: https://wiki.roblox.com/index.php?title=API:Class/GuiButton/MouseButton1Click