Can someone help me, So When The Player Finishes the Parkour, To Get A Point in Leaderstats, Thanks
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
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)
Closed as Not Constructive by DinozCreates, User#24403, green271, and Gey4Jesus69
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?