Lets make a roblox game together
- User
Lets make a roblox game together
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Lets make a roblox game together
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
We'll build a simple but fun obstacle course (obby) with checkpoints, traps, and a leaderboard. Here's the step-by-step plan:
Baseplate:
500x500 studs.Terrain:
Starting Platform:
SpawnLocation object) on a large platform.Obstacles:
-- Script for a moving platform (place in the platform)
local platform = script.Parent
local startPos = platform.Position
local endPos = startPos + Vector3.new(0, 0, 20) -- Move 20 studs forward
local speed = 5 -- Studs per second
while true do
platform.Position = startPos:Lerp(endPos, (math.sin(os.clock() * speed) + 1)/2)
task.wait()
end
TouchInterest events to kill players.Checkpoints:
Checkpoint System:
-- Checkpoint script (place in a part)
local checkpoint = script.Parent
checkpoint.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
player:SetAttribute("Checkpoint", checkpoint.Position) -- Save position
checkpoint.BrickColor = BrickColor.new("Bright green") -- Visual feedback
end
end)
Respawn System:
-- ServerScriptService respawn handler
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
char:WaitForChild("Humanoid").Died:Connect(function()
task.wait(2)
if player:GetAttribute("Checkpoint") then
-- Teleport to checkpoint
char:MoveTo(player:GetAttribute("Checkpoint"))
else
-- Teleport to start
char:MoveTo(game.Workspace.StartPlatform.Position)
end
end)
end)
end)
Finish Line:
-- Finish line script
local finish = script.Parent
finish.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
local timer = player:GetAttribute("StartTime")
local finishTime = os.time() - timer
-- Leaderboard update (next step)
end
end)
-- Leaderboard script in StarterPlayerScripts
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
local timeStat = Instance.new("IntValue")
timeStat.Name = "Time"
timeStat.Parent = leaderstats
leaderstats.Parent = player
Let's start! Share a screenshot of your progress, and I’ll send the next scripts! 🚀