Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When Player Reaches The Finish Gain 1 Point? [closed]

Asked by
GentiRob -81
5 years ago

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

0
value.Value = value.Value + 1 greatneil80 2647 — 5y
0
Can You Explain Better, It Doesn't Work GentiRob -81 — 5y
0
SH is not for requests. DinozCreates 1070 — 5y

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?

2 answers

Log in to vote
0
Answered by 5 years ago

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
0
the name of the value tylergoatboy 82 — 5y
0
this looks like it would work Trew86 175 — 5y
0
It Doesn't work GentiRob -81 — 5y
Ad
Log in to vote
0
Answered by
GentiRob -81
5 years ago

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)