Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can someone help me with this really simple variable?

I am making a game and I got an error that doesn't make sense. https://prnt.sc/wnowhh

local SpawnPoints = game.Workspace.SpaceMap.SpawnPoints

Pls help xD

5 comments

0

Sorry the image got deleted. THis is the new image --> https://prnt.sc/wnp14z

0

Does this happen every time you play test? If so it might be because the spawn points haven't spawned in yet

0

*loaded

0

Sorry my bad. I had a typo xD

0

Oh okay

1 answer

✓ Accepted answer

The model may not have loaded in. Try

local SpawnPoints = game.Workspace.SpaceMap:WaitForChild("SpawnPoints")

1 comment

0

You accidentally also solved my problem, thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.