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

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

Asked by 5 years ago

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!
0
hints are decaperated, instead use GUI User#23365 30 — 5y
0
decaperated lunatic5 409 — 5y
0
How come it works then? HMM? User#22722 20 — 5y

1 answer

Log in to vote
0
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

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
0
u simply cant lunatic5 409 — 5y
Ad

Answer this question