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

Why is my hint script not functional? Is it because i missed something?

Well, roblox lua is already broken and it broke my script.

I would like some assistance on the script, i'd be pleased to try and accept the answer. (if your willing to help.)

local h = Instance.new("Hint")
for i = 1,120,-1 do
h.Name = "Message"
h.Text = i .. "Seconds left till explosion."
wait(120)
if h.Text == "0 Seconds left till explosion." then
	print("hi")
end
end

--Notes: I don't give a flying rat about any errors. JUST FIX THE DESIGN & LUA ROBLOX!

3 comments

0

hints are decaperated, instead use GUI

0

decaperated

0

How come it works then? HMM?

1 answer

✓ Accepted answer

Fixed code:

for i = 120, 0, -1 do
    h.Name = 'Message'
    h.Text = i..' Seconds left till explosion'
    if h.Text == '0 Seconds left till explosion' then print('Hi') end
    wait(1)
end

1 comment

0

u simply cant

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