Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

on click give player hat wont work what did i do wrong?

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)

1 comment

0

Would you mind putting it in a code block?

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.