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

Whats wrong with this Print?

Asked by 9 years ago

I will be expanding this to do bigger things. But for now I am testing

local o1 = game.Workspace.o1
if o1.Name == o1 then
    print("Coming Soon")
end

The game I will use it for is map changing. So I am trying to test and have this check if o1 is in Workspace, if it is not then loop until it is detected in workspace

1 answer

Log in to vote
0
Answered by
lomo0987 250 Moderation Voter
9 years ago
local map = game.Workspace:WaitForChild("o1") -- What this will do is make the script wait until there is something named "o1" in Workspace :D
if map then
    print("Coming Soon!")
end
0
It works fine. But it only works once, may you add a loop please? ggggyourface23 63 — 9y
0
How would I make it so it can be used unlimited times?????????? ggggyourface23 63 — 9y
Ad

Answer this question