Im getting an error from this script, any help?
local shirtId = script.Parent.Parent.Coathanger.Shirt.ShirtTemplate
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if player:WaitForChild("leaderstats").Money12.Value>= 1 then -- "If they have money value" local d = character:FindFirstChild("Shirt") d.ShirtTemplate = shirtId end end) end)