Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

When Player Reaches The Finish Gain 1 Point?

Can someone help me, So When The Player Finishes the Parkour, To Get A Point in Leaderstats, Thanks

3 comments

0

value.Value = value.Value + 1

0

Can You Explain Better, It Doesn't Work

0

SH is not for requests.

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.