This is what I have on my script right now. What i want it to do is make the folder value be true only if the file this is activated. But when I run this in my game it instantly makes the folder value true. How do I fix this?
local this = script.Parent
game.Players.PlayerAdded:connect (function(plr)
local folder = Instance.new ("BoolValue",workspace)
folder.Name = (plr.Name .. "click")
if this.Activated then
folder.Value = true
end
end)

3 comments
'this' is the button that you press
what is the script a parent of? it can help people to help you
You can't use ":connect()". Use ":Connect()".