Start is not a valid member of Workspace?

So I decided to make an infinite generating obby but I don’t know how. I searched on YouTube on how to make one and I came across this video: https://www.youtube.com/watch?v=gJg48CFb39Q

What is the problem?

I did what he did and this happened:

I have no idea what was wrong and I checked the script but I didn’t find anything.

THE SCRIPT IS A LOCAL SCRIPT AND IS IN REPLICATEDFIRST!

CODE:

if game:IsLoaded() == false then game.Loaded:Wait() end

local runService = game:GetService("RunService")

local player = game.Players.LocalPlayer
local part = workspace.Start
local random = Random.new(game.ReplicatedStorage.Seed.Value)

local models = game.ReplicatedStorage.Models:GetChildren()
table.sort(models, function(a, b) return a.Name < b.Name end)

runService.Heartbeat:Connect(function(deltaTime)
	if player.Character == nil then return end
	if (part.Position - player.Character:GetPivot().Position).Magnitude > 200 then return end
	
	local model = models[random:NextInteger(1, #models)]:Clone()
	model:PivotTo(part.CFrame)
	model.Parent = workspace
	
	part = model.End
end)
2 Likes

Wait you want to make for everybody who joins random obby or only for first who joins on server?

1 Like

I want like a player joins the obby generates and another player joins but its not the same for them

Okey sorry i cannot help you with that but can you take screenshot of Explorer?

obrázok_2023-09-16_121758310
Check if you have this in script.This is in the video.

local part = workspace:WaitForChild(‘Start’)

2 Likes

Well that code is basically generating a obby part more often than the other one if you know what I mean

You mean it generates more platforms but not much obstacles?

yeah more platforms or something

So you dont have problem with start is no valid member anymore?

I mean no its like a platform generates more often than the other one like the blue platform has a 70% chance of getting generated and the red platform has a 30% chance of getting generated

Okey so create more stages where is the kill/hit brick so it generates more.(You must create stages right?)

Yeah im creating more stages or something

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.