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.
01 | game.Players.PlayerAdded:connect( function (player) |
02 |
03 | player.CharacterAdded:connect( function (character) |
04 |
05 | if player:WaitForChild( "leaderstats" ).Money 12. Value> = 1 then |
06 |
07 | print ( "player.leaderstats.Money12.Value" ) |
08 |
09 | character.Shirt:Destroy() |
10 |
11 | end |
12 |
13 | lol = script.Parent.Shirt:Clone() |
14 |
15 | lol.Parent = character |
16 |
17 | end ) |
18 |
19 | end ) |
0
Answered by
10 minutes ago
Edited 2 minutes ago
heres a fix
01 | game.Players.PlayerAdded:connect( function (player) |
02 | player.CharacterAdded:connect( function (character) |
03 | if player:WaitForChild( "leaderstats" ).Money.Value> = 1 then |
04 | player:WaitForChild( "leaderstats" ).Money.Value = player:WaitForChild( "leaderstats" ).Money.Value - 1 |
05 | print (player.leaderstats.Money.Value) |
06 | character.Shirt:Destroy() |
07 | lol = script.Parent.Shirt:Clone() |
08 | lol.Parent = character |
09 | end |
10 | end ) |
11 | end ) |