#leaderstats

22 messages · Page 1 of 1 (latest)

shadow cradle
#

Can someone help me make a leaderstats system where when someone steps on a part it adds +1 win to the leaderstats

novel ivy
#
    local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
    if player then
        player.leaderstats.Wins += 1
    end
end)```
shadow cradle
#

tysm nrp

#

bro

#

but how do i make it so when you touch a part it adds 1 to the leaderstats

#

1 win

#

@novel ivy

novel ivy
#

The video is for storing and saving it

shadow cradle
#

ohhh

#

so do i add a part then insert that script to it

#

then it works?

novel ivy
#

Yeah it should

true kiteBOT
#

studio** You are now Level 1! **studio

shadow cradle
#

do i add an int value to it also what should i name the part and script?

#

@novel ivy

merry robin
shadow cradle
#

Its fine ill try doing this myself later

merry robin
final mountain
#

part.Touched:Connect(function(hit)
local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
if player then
player.leaderstats.Wins.Value += 1
end
end)