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

How do I insert a hint?

Asked by 10 years ago

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

Log in to vote
5
Answered by
Ozzypig 185
10 years ago

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.

0
i agree thehybrid576 294 — 7y
Ad
Log in to vote
1
Answered by
Nickoakz 231 Moderation Voter
10 years ago

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)

Log in to vote
0
Answered by
Dom2d2 35
10 years ago

You can insert a hint with the following code.

m = instance.new("Hint", Workspace)
m.Text = "hi" --Whatever text you want it to say.
Log in to vote
0
Answered by 4 years ago

6 YEARS LATER

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

Answer this question