Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Value Plus 1, Help? [SOLVED]

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

✓ Accepted answer
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

This discussion is preserved as it was. New answers, comments, and votes are closed.