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

Why is this hint script not working?

Hello, My friends...

Today im asking you why This Hint Script I have made doesn't work, I have classified everything into a proper group(s) etc...

And it isn't showing a Hint at all

Any Ideas why?

local h = Instance.new("Hint")
local sftg = game.ServerStorage.sft and game.Workspace.sft
local gftg = game.ServerStorage.gft and game.Workspace.gft
local obbyg = game.ServerStorage.obby and game.Workspace.obby

while wait() do
if sftg.Parent ~= game.Workspace and gftg.Parent ~= game.Workspace and obbyg.Parent ~= game.Workspace then
h.Parent = game.Workspace
h.Text = "Currently There is no map running..."
end
if sftg.Parent == game.Workspace and gftg.Parent ~= game.Workspace and obbyg.Parent ~= game.Workspace  then
	h.Parent = game.Workspace 
	h.Text = "Currently SwordFight is Running..."
end
end

if gftg.Parent == game.Workspace and sftg.Parent ~= game.Workspace and obbyg.Parent ~= game.Workspace then
	h.Parent = game.Workspace
	h.Text = "Currently GunFight is Running..."
end

if obbyg.Parent == game.Workspace and sftg.Parent ~= game.Workspace and gftg.Parent ~= game.Workspace then
	h.Parent = game.Workspace
	h.Text = "Currently Obby is Running..."
end

2 answers

Try replacing wait() to true

BTW this is my first answer

1 comment

0

the wait() does not affect it from being true it Only makes it not run extremely fast and crashing studio.

The first line of the script is the problem. You stated that there was a new Hint, but you did not specify exactly where it is.

local h = Instance.new("Hint")

Instead, if you showed that it was somewhere in Workspace or another location, I'm sure it would work just fine.

local h = Instance.new("Hint", game.Workspace)

1 comment

0

But sir, I do have the hints parent in there already.. "if sftg.Parent == game.Workspace and gftg.Parent ~= game.Workspace and obbyg.Parent ~= game.Workspace then h.Parent = game.Workspace h.Text = "Currently SwordFight is Running...""

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