Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help me with this really simple variable?

Asked by 3 years ago

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

0
Sorry the image got deleted. THis is the new image --> https://prnt.sc/wnp14z HugigoRoblox 6 — 3y
0
Does this happen every time you play test? If so it might be because the spawn points haven't spawned in yet CoolBlueJay000 48 — 3y
0
*loaded CoolBlueJay000 48 — 3y
0
Sorry my bad. I had a typo xD HugigoRoblox 6 — 3y
0
Oh okay CoolBlueJay000 48 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

The model may not have loaded in. Try

local SpawnPoints = game.Workspace.SpaceMap:WaitForChild("SpawnPoints")
0
You accidentally also solved my problem, thanks! FLIPPER4440 21 — 3y
Ad

Answer this question