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

Help with overbar on a roblox game?

Asked by 9 years ago

If I am doing multiple things in the overbar, would I do it like,

while wait(20) do local h = game.Workspace:FindFirstChild("Hint") if h == nil then local h = Instance.new("Hint") h.Name = "Hint" h.Parent = game.Workspace h.Text = "Welcome to Ultimate Sword Fighting by Nitroade100" end

while wait(20) do local h = game.Workspace:FindFirstChild("Hint") if h == nil then local h = Instance.new("Hint") h.Name = "Hint" h.Parent = game.Workspace h.Text = "Please Leave a Like or Favorite if you Enjoyed!" end

while wait(20) do local h = game.Workspace:FindFirstChild("Hint") if h == nil then local h = Instance.new("Hint") h.Name = "Hint" h.Parent = game.Workspace h.Text = "Found an Exploiter? PM Nitroade100 the FULL USERNAME!" end

while wait(20) do local h = game.Workspace:FindFirstChild("Hint") if h == nil then local h = Instance.new("Hint") h.Name = "Hint" h.Parent = game.Workspace h.Text = "Thanks for playing!" end

Or would I only do "while wait(20) do" once for all of them?

Sorry if I'm trouble, I'm trying my best to learn to script in hopes of being able to use DevEx!

1 answer

Log in to vote
1
Answered by 9 years ago

Finished Script.

while true do
local h = Instance.new("Hint")
h.Parent = game.Workspace
h.Text = "Welcome to Ultimate Sword Fighting by Nitroade100"
wait(20)
h.Text = "Please Leave a Like or Favorite if you Enjoyed!"
wait(20)
h.Text = "Found an Exploiter? PM Nitroade100 the FULL USERNAME!"
wait(20)
h.Text = "Thanks for playing!"
end

BTW here's a tip. When you want to insert something, you don't have to do:

example = Instance.new("Part")
example.Parent = game.Lighting

Instead, you can do...

example = Instance.new("Part", game.Lighting)
Ad

Answer this question