So my code looks like this :
while wait() do if game:GetService("Workspace").Map then codeeeee else print("ok") end end
Output :
Map is not a valid member of Workspace
Shouldn't it print ok until the map spawns in?
I don’t know if this is the “right” way to do it but I usually use
if workspace:FindFirstChild(“Map”) ~= nil then else end
This works for me...
Just change the code to:
while wait() do if workspace:FindFirstChild("Map") then --codeeeee else print("ok") end end