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

I need help with a hint script [?]

this is the code:

while wait(0.1) do
local uno = game.Workspace:FindFirstChild("Unobtainium")
if uno ~= nil then
	local hint = Instance.new("Hint")
	hint.Text = "Unobtainium has been found in"
	hint.Parent = game.Workspace
	end
end

the code doesn't work and there are no errors in output or in script analysis.

1 answer

I renamed Baseplate to Unobtainium and your script seemed to work. Although I would change a few things to make it cleaner.

while wait(0.1) do
	local uno = game.Workspace:FindFirstChild("Unobtainium")
	if uno ~= nil then
	    local hint = Instance.new("Hint", game.Workspace)
	    hint.Text = "Unobtainium has been found in"
	end
end

Make sure you spelled Unobtainium correctly and that its parent is Workspace? I don't really know why this doesn't work for you.

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