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

Value Plus 1, Help? [SOLVED]

Asked by 10 years ago
if game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Sit == true then
    message.Text = "Player, " ..Player.Name.. " has won!"
    wait(0.1)
    game.Players.LocalPlayer.leaderstats.Wins.Value +1
end

Everything at the top works, it's just the "game.Players.LocalPlayer.leaderstats.Wins.Value +1" that isn't valid, how would I make it valid?

1 answer

Log in to vote
1
Answered by 10 years ago
if game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Sit == true then
player=game.Players.LocalPlayer
    message.Text = "Player, " ..Player.Name.. " has won!"
    wait(0.1)

player.leaderstats.Wins.Value=player.leaderstats.Wins.Value+1
end

Ad

Answer this question