local game = {}
local module = {}
function wait(t)
local time = t / os.clock()
end
function module.new()
local self = setmetatable({}, module)
return self
end
function game:IsLoaded()
local check = {}
end
function game:GetService(Service)
self.service = {
RunService = {
Heartbeat = {0.011}
}
}
print(self.service)
if Service == "RunService" then
local RunService = {}
end
end
function game.Loaded(Wait)
if not Wait then
Wait = {}
end
local check = {}
end
local Random = {}
function Random.new()
end
function Random:NextInteger()
end
if not game:IsLoaded() then game.Loaded() end
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local start = workspace.Start
local Random = Random.new(game.ReplicatedStorage.Seed.Value)
local children = game.ReplicatedStorage.Models:GetChildren()
local models = {}
table.sort(children, function(a, b) return a.Name < b.Name end)
for i, child in children do
local chance = child:GetAttribute("Chance") or 1
for = 1, chance do table.insert(models, child) end
end
RunService.Heartbeat:Connect(function(deltaTime)
if LocalPlayer.Character == nil then return print("n!n!l") end
if (start.Position - LocalPlayer.Character:GetPivot().Position).Magnitude > 200 then return print("more than 200 away") end
local model = models[Random:NextInteger(1, #models)]:Clone()
model:PivotTo(start.CFrame)
model.Parent = workspace.Obbies
start = model.End
end
To embed this project on your website, copy the following code and paste it into your website's HTML: