Trying to give a player using a server script

I am making a last man standing game but when I try to get the player like this:
local function givewin(player)
player.leaderstats.Wins.Value + 1
end

doesn’t work and i know there is a way to do this. I just forgot how

1 Like

Can you show the full script in code format using the ``` characters?

1 Like

do it like this

local function givewin(player)
player.leaderstats.Wins.Value += 1
end

2 Likes

This is how it works:

local function givewin(player)
   player.leaderstats.Wins.Value = player.leaderstats.Wins.Value + 1
end
2 Likes
local function givewin(player)
	player.leaderstats.Wins.Value += 1
end
1 Like

Thats the same but lol, why did u posted it again .-.

1 Like

True, it was just to show that it can be shortened slightly.

1 Like

Ahh, ok, im sorry, have a nice day