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

Why does this script that morphs the game not do anything?

Asked by 7 years ago
Edited 7 years ago

I'm trying to make a joke script, but the countdown won't start. Also, the music won't play.

for i=1,5,-1 do
message = Instance.new("Message")
message.Parent = game.Workspace
message.Text = "This land will belong to serbia in "..i.." seconds."
wait(1)
end

function serbia()
accordian = Instance.new("Sound")
accordian.Parent = game.Workspace
accordian.SoundId = "https://www.roblox.com/library/544920674/Serbian-Army-Music"
accordian.Volume = 1
accordian:Play()
end
serbia()
print("good")

Help please!

0
in the output, it posts, "nil" MustangHeart 67 — 7y
0
i meant print("good") MustangHeart 67 — 7y
0
good isnt a value so it returns nil ya gotta do "good" farrizbb 465 — 7y
0
thats what I just said, I meant ("good") MustangHeart 67 — 7y
0
you made a mistake. For line 1 do: for i=5,1,-1 do (you had 5,1 mixed up.) AstrealDev 728 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

I fixed it

Ad

Answer this question