Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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)

0
Would you mind putting it in a code block? tictac67 96 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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)
0
thank you itz_Dennisss 1 — 4y
Ad

Answer this question