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

How do I insert a hint?

Im doing this test thing and I would like to use a hint instead of a message, but it seems hints have been removed?

Game.Players.PlayerAdded:connect(function(Player)
    --Check for specific names here if wanted.
    Player.Chatted:connect(function(msg)
        if msg == "Hi" then
        Instance.new("Message", Workspace)
		x = game.Workspace.Message
		wait(.5)
		x.Text = "Test"
        end
    end)
end)

4 answers

Hints are simply deprecated in favor of GUI objects, so they're being phased out over time I imagine. Consider making a basic GUI to do what you're trying to accomplish instead. Remember that hints visible to one player must be inside their PlayerGui.

1 comment

0

i agree

Hint's aren't removed. I have no idea where you got that fact.

Game.Players.PlayerAdded:connect(function(Player)
	--Check for specific names here if wanted.
	Player.Chatted:connect(function(msg)
		if msg == "Hi" then
			local myhint=Instance.new("Hint", Workspace)
			myhint.Text="Test"
			wait(7)
			myhint:Destroy()
		end
	end)
end)

You can insert a hint with the following code.

m = instance.new("Hint", Workspace)
m.Text = "hi" --Whatever text you want it to say.

6 YEARS LATER

local hint = Instance.new("Hint")
hint.Text = "THIS IS A HINT"

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