Can someone help me, So When The Player Finishes the Parkour, To Get A Point in Leaderstats, Thanks
COMMUNITY QUESTION
When Player Reaches The Finish Gain 1 Point?
2 answers
put that in the part the player touches when finished
hope this helps
script.Parent.Touched:connect(function(part)
local h = part.Parent:FindFirstChild("Humanoid")
local plr=game.Players:FindFirstChild(h.Parent.Name)
local v=plr.Leaderstats.--your value here--
v.Value=v.Value+1
end
3 comments
0
the name of the value
0
this looks like it would work
0
It Doesn't work
This is The Leaderstats
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("IntValue", player)
leaderstats.Name = "leaderstats"
local Wins = Instance.new("IntValue", leaderstats)
Wins.Name = "Wins"
Wins.Value = 0
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
value.Value = value.Value + 1
Can You Explain Better, It Doesn't Work
SH is not for requests.