#leaderstats
22 messages · Page 1 of 1 (latest)
local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
if player then
player.leaderstats.Wins += 1
end
end)```
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
That’s the code for that
The video is for storing and saving it
Yeah it should
** You are now Level 1! **
do i add an int value to it also what should i name the part and script?
@novel ivy
so what do u need help with
Its fine ill try doing this myself later
na its complex for some people
part.Touched:Connect(function(hit)
local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
if player then
player.leaderstats.Wins.Value += 1
end
end)