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)
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)