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

I Can't Change The Text Of A Hint?

Asked by 9 years ago
    local hint = Instance.new("Hint", workspace)
    local a = hint.Text
    a = ("Getting The Game Ready")

Or at least i can't do it right.

Hope You Can Help, Thanks!

0
Hints aren't really supported anymore, it's best if you just use a thin textlabel. SpazzMan502 133 — 9y
0
back in 2010 every game used Hints SamTheDeveloper 85 — 9y

1 answer

Log in to vote
2
Answered by 9 years ago

The reason is because the Text Property is a variable. When you set a property as a variable it sets the variable as the value so doing this is basically saying "Message" = "Message2", which will error. This is a common mistake with all developers will probably make at least once.


Final Product

local hint = Instance.new("Hint", workspace)
hint.Text = "Getting The Game Ready"

Hope it helps!

Ad

Answer this question