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

Sound, and True/False Statements, Why don't they work?

Asked by
Resnex 60
10 years ago

For example, if a line of a script says something along the lines of

if Music.IsPlaying = false then

And you put what happens when it's not playing, how come it doesn't work?

1 answer

Log in to vote
2
Answered by
Sublimus 992 Moderation Voter
10 years ago

It should be:

if MUSICLOCATION.IsPlaying == false then --There should be two equal signs to signify congruence
    --code
end
0
Ah, so sorry, I'm a newb to scripting. Thanks! Resnex 60 — 10y
0
No problem, be sure to up-vote me! Sublimus 992 — 10y
Ad

Answer this question