script.Parent.ClickDetector.MouseClick:connect(function(player) if player.leaderstats.Seconds.Value >= 100 then game.ServerStorage["1000 visits hat"]:Clone().Parent = player.accessory end end)
✓ ANSWER ACCEPTED
on click give player hat wont work what did i do wrong?
1 answer
✓ Accepted answer
Player is A Player, not character
script.Parent.ClickDetector.MouseClick:connect(function(player)
if player.leaderstats.Seconds.Value >= 100 then
game.ServerStorage["1000 visits hat"]:Clone().Parent = player.Character
end
end)
1 comment
0
thank you
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Would you mind putting it in a code block?