script.Parent.Start.Touched:connect(function(c)
if game.Players:GetPlayerFromCharacter(c)then
local r=Instance.new("IntValue",script.Parent)
r.Name=c.Name
while true do
wait(.5)
r.Value=r.Value+1
wait(.5)end end end)
script.Parent.Finish.Touched:connect(function(w)
if game.Players:GetPlayerFromCharacter(c)then
local p=script.Parent:FindFirstChild(w.Name)
local x=script.Parent.winner
local c=script:GetChildren()
for i=1,#c do
if c[i].ClassName=="ObjectValue"then
local o=c[i]
if p.Value > x.Value then ------ Line 15
x.Value=p.Value
o.Name=w.Name wait()
local m=Instance.new("Message",game.Workspace)
m.Text=(o.Name ... " currently holds the server record, completing the obby in " ... x.Value ... " seconds!")wait(10)m:Remove()
end end end end end) |