Hat giver, has no errors in console or script, but it still doesnt work after trying multiple times?
01 | local hat = game.ServerStorage [ "Commander+" ] |
03 | script.Parent.Touched:Connect( function (h) |
04 | local plr = game.Players:GetPlayerFromCharacter(h.Parent) |
06 | if not h.Parent:FindFirstChild( "Commander+" ) then |
07 | hat:Clone().Parent = h.Parent |
I'm trying to make it give the player a hat that is an accessory in ServerStorage (the hat itself is an union)
there is no errors in the console or the script itself but it still doesn't work