I have an obby with an ingame timer, this comes from these two different scripts:
https://gyazo.com/83fb77684f891f1ec83d784aa1ee86b2 https://gyazo.com/cfe29b258148f9f6f3d88b2f0d58fc6f
My question is, is there a way that when the character touches a block the timer can end and the time can be transferred onto a leaderboard of times on a billboard for the top ten.
(Like a time trial)
amount = 1
timedelay = 1
timename = "Seconds"
while true do
wait(timedelay)
for i,v in pairs(game.Players:GetPlayers()) do
if v:FindFirstChild("leaderstats") and v then
v.leaderstats[timename].Value = v.leaderstats[timename].Value + amount
end
end
end
game.Players.PlayerAdded:connect(function(plr)
local stats = Instance.new("BoolValue",plr)
stats.Name = "leaderstats"
local timer = Instance.new("IntValue",stats)
timer.Name = "Seconds"
timer.Value = 0
end)

4 comments
It is possible.
It would help greatly if you would post your code instead of taking screenshots of it.
It would help greatly if you would post your code instead of taking screenshots of it.
done