Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with overbar on a roblox game?

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

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.