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

Why is the status returning wrong?

Asked by
Xyternal 247 Moderation Voter
3 years ago

So I have a little code with a intValue which is called Status. So I want that when the intermission function is called, change the status.

Status.Value = "Intermission"
print(Status.Value)

But when I check the console, it prints 0 instead of intermission. Why???

1 answer

Log in to vote
0
Answered by 3 years ago

Hey there! This is something pretty simple to resolve. The reason it is outputting a zero is because Status is not a StringValue. All you need to do is replace what I presume is an IntValue with the StringValue and then it should output "Intermission"

0
when answers are this easy, i feel stupid lol Xyternal 247 — 3y
0
No need to feel stupid! Silly stuff happens all the time to me when I am doing stuff in Roblox Studio BunnyFilms1 297 — 3y
Ad

Answer this question