-- Put this Script in ServerScriptService in a fresh Baseplate place. local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local course = Instance.new("Model") course.Name = "TimedObby" course.Parent = Workspace local function makePart(name, position, size, color, className) local part = Instance.new(className or "Part") part.Name = name part.Anchored = true part.Size = size part.Position = position part.Color = color part.Parent = course return part end local spawn = makePart("Spawn", Vector3.new(0, 3, 0), Vector3.new(12, 1, 12), Color3.fromRGB(90, 180, 255), "SpawnLocation") spawn.Neutral = true spawn.Duration = 0 local function reset(player) player:SetAttribute("ObbyStep", 0) player:SetAttribute("ObbyStartedAt", nil) player:SetAttribute("ObbyFinishedIn", nil) end local function bindPlayer(player) reset(player) player.RespawnLocation = spawn local function onCharacter(character) reset(player) local humanoid = character:WaitForChild("Humanoid") humanoid.Died:Connect(function() reset(player) end) end player.CharacterAdded:Connect(onCharacter) if player.Character then task.spawn(onCharacter, player.Character) end end Players.PlayerAdded:Connect(bindPlayer) for _, player in Players:GetPlayers() do bindPlayer(player) end local function touchingPlayer(hit) local character = hit:FindFirstAncestorOfClass("Model") if not character then return nil end local humanoid = character:FindFirstChildOfClass("Humanoid") if not humanoid or humanoid.Health <= 0 then return nil end return Players:GetPlayerFromCharacter(character) end for index = 1, 6 do local pad = makePart("Pad" .. index, Vector3.new(index * 10, 3, 0), Vector3.new(7, 1, 9), Color3.fromRGB(255, 180, 70)) pad.Touched:Connect(function(hit) local player = touchingPlayer(hit) if not player or player:GetAttribute("ObbyFinishedIn") then return end local step = player:GetAttribute("ObbyStep") or 0 if index ~= step + 1 then return end if index == 1 then player:SetAttribute("ObbyStartedAt", Workspace:GetServerTimeNow()) end player:SetAttribute("ObbyStep", index) end) end local finish = makePart("Finish", Vector3.new(70, 3, 0), Vector3.new(12, 1, 12), Color3.fromRGB(120, 255, 160)) finish.Touched:Connect(function(hit) local player = touchingPlayer(hit) if not player or player:GetAttribute("ObbyStep") ~= 6 then return end if player:GetAttribute("ObbyFinishedIn") then return end local started = player:GetAttribute("ObbyStartedAt") if not started then return end local elapsed = Workspace:GetServerTimeNow() - started player:SetAttribute("ObbyFinishedIn", elapsed) print(string.format("OBBY_FINISH user=%d seconds=%.2f", player.UserId, elapsed)) end) local lava = makePart("Lava", Vector3.new(35, -3, 0), Vector3.new(110, 1, 55), Color3.fromRGB(255, 70, 75)) lava.Touched:Connect(function(hit) local player = touchingPlayer(hit) if player and player.Character then player.Character:FindFirstChildOfClass("Humanoid").Health = 0 end end) print("OBBY_READY pads=6 finish_x=70")