My script that with a value, you get a shirt, isn't working, I have no idea if its because i have 2 leaderstats, instead of just 1, but any help? Heres the script.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if player:WaitForChild("leaderstats").Money12.Value>= 1 then print("player.leaderstats.Money12.Value") character.Shirt:Destroy() end lol = script.Parent.Shirt:Clone() lol.Parent = character end) end)
Answered by
10 minutes ago
Edited 2 minutes ago
heres a fix
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if player:WaitForChild("leaderstats").Money.Value>= 1 then player:WaitForChild("leaderstats").Money.Value = player:WaitForChild("leaderstats").Money.Value - 1 print(player.leaderstats.Money.Value) character.Shirt:Destroy() lol = script.Parent.Shirt:Clone() lol.Parent = character end end) end)