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

Can someone help with this message script?

Asked by 10 years ago
interval = 5
h = Instance.new("Hint", workspace)
h.Text = "Text1"
wait(interval)
h.Text = "Text2"
wait(interval)
h.Text = "Text3"
wait(interval)
h.Text = "Text4"
wait(interval)

It is locked on last one :(

0
What are you trying to do? Tempestatem 884 — 10y
0
I am trying to make a loop changing text. But I got an answer. thefinalbattleman 35 — 10y

2 answers

Log in to vote
3
Answered by 10 years ago

Here :/

interval = 5
h = Instance.new("Hint", workspace)
while wait() do
h.Text = "Text1"
wait(interval)
h.Text = "Text2"
wait(interval)
h.Text = "Text3"
wait(interval)
h.Text = "Text4"
wait(interval)
end

~ Have fun scripting! ~

1
Ugh i wasnt fast enough, i was about to post when i saw this Tempestatem 884 — 10y
0
Instead of commenting try to find out what he meant then post immediately the : "It is locked on last one :(" part kinda gave me this idea fireboltofdeath 635 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

There is another one Instance.new("Hint", game.Workspace)

while true do

wait(1)

game.Workspace.Message.Text = "Text goes here"

wait(5)

game.Workspace.Message.Text = "Text goes here2"

wait(5)

end

Just continue on as you see it says wait(5) just put under that enter enter then game.Workspace.Message,Text = "What ever you want to say" and keep going if you like :)

0
That is not a good way because what if there is another "message" in the workspace? thefinalbattleman 35 — 10y
0
@thefinalbattleman, you can just do it once if you want, you can do it how many times you want, and can you thumbs up :) darius1825 0 — 10y

Answer this question