So I am just starting on trying to make my game, and I want to make it so that whenever a string variable's value is "Loading..." it will clone in a map I have.
This is the error I'm getting:
Workspace.mapLoader:8: attempt to index global 'Fallen' (a nil value)
Here is my code:
--{{VARIABLES}}--
g = game.Workspace.gameRunner.inGame
s = g.Parent.status
--{{CHECKER}}--
while true do
if s.Value == "Loading..." then
game.ServerStorage.Fallen:Clone()
Fallen.Parent = game.Workspace
wait(20)
end
wait(1)
end

1 comment
Thanks a lot! It worked!