Roblox 'hints' message not showing up on the published version

Hello developers, I understand this has been a deprecated feature for quite some time but I’m curious as to if it still functions through published versions, as it seems to only display in studio. Every time I close studio and reopen, it always seems to disappear from the workspace too. The feature in question is called ‘hints’, which are small black rectangular gui’s that display basic white text at the top of your screen, commonly used in older Roblox versions.

An example is provided below:

Here’s what it looks like in Workspace:
image

Here’s the ‘Main’ script:

h = script.Parent
strength = game.Workspace.Weaken

function start()
switch()
while true do
wait(1)
h.Text = "The Current Level of the teapots are: "..strength.Value.."!"
DimDown()
end
end

function switch()
local stuff = game.Workspace:GetChildren()
for i = 1,#stuff do
if stuff[i].Name == "TeapotShooter" then
stuff[i].Teapot.Disabled = true
wait()
stuff[i].Teapot.Disabled = false
end
end
end


function DimDown()
local currentstrength = strength:clone()
wait(45)
if strength.Value == currentstrength.Value then
strength.Value = strength.Value - 2
wait()
h.Text = "Making teapots less evil. Teapot level is now "..strength.Value.."!"
wait(3)
start()
end
end

game.Workspace.Win.Script.Disabled = true
wait()
game.Workspace.Win.Script.Disabled = false
start()

I hardly know anything in regards to scripting, other than some basic fundamental values and functions. I’m in the concept stage and acquired some quick free model scripts in hopes of making a concept showcase in the foreseeable future for recruiting purposes. As I’m sure you’ve noticed by know, the script above connects with other scripts. If that’s relevant, I could provide the rest here, or you could look up the free model yourself. The free model in question can be found here.

It doesn’t save in published versions (most likely because its deprecated).

You can use a script to create a Hint Instance; which should appear in live games.

local newHint = Instance.new("Hint")
newHint.Text = "Hello!"
newHint.Parent = workspace

Using the code below should solve the issue with the code you provided:
Note that this should be parented under ServerScriptService or Workspace. (if you’re using Legacy RunContext)

h = Instance.new("Hint")
h.Parent = workspace
strength = game.Workspace.Weaken

function start()
switch()
while true do
wait(1)
h.Text = "The Current Level of the teapots are: "..strength.Value.."!"
DimDown()
end
end

function switch()
local stuff = game.Workspace:GetChildren()
for i = 1,#stuff do
if stuff[i].Name == "TeapotShooter" then
stuff[i].Teapot.Disabled = true
wait()
stuff[i].Teapot.Disabled = false
end
end
end


function DimDown()
local currentstrength = strength:clone()
wait(45)
if strength.Value == currentstrength.Value then
strength.Value = strength.Value - 2
wait()
h.Text = "Making teapots less evil. Teapot level is now "..strength.Value.."!"
wait(3)
start()
end
end

game.Workspace.Win.Script.Disabled = true
wait()
game.Workspace.Win.Script.Disabled = false
start()
1 Like

After pasting your revised code into ServerScriptService everything worked out perfectly, thank you so much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.