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

I'm having a problem with creating an Intermission script. Anyone willing to help?

Asked by 7 years ago

I've been looking everywhere for this answer but nothing was found. I would only like to know how to create a simple intermission script for a horror game. I am just a beginner to this wonderful adventure we call scripting, so apologies for asking such a question.

0
wait(Some Amount Of Seconds) Mooshe10 0 — 7y

1 answer

Log in to vote
4
Answered by 7 years ago

So to create a basic intermission script you need to know about For loops and Variables, a for loop is is a way of running a command or set of commands a set number of times, so for example if i do

for i = 1,10 do
 print("Hi mom")
end

if will print hi mom 10 times, the first number is where the for loop starts, the second is where it ends and the third is what you add, subtract or whatever, you can find out more about them here, now Variablesa variable is a name you can use to hold a value, for example i want a variable called john and i want it to equal the word A person so i would do

local John = "A person"

and if i wanted to set a number i would do the same thing but without the ""

local John = 10

you learn more about them herehere

so to get started you would have to define the text label you are using so you can just do and i do suggest using a local script if you want

local Text = script.Parent.Text

then you want to use the For Loop by doing

for i = 10, 1, -1 do

end

then we want to set the text label as i so we do

for i = 10, 1, -1 do
 Text.Text = i
wait(1)
end

You need the Wait(), what this does is whatever number is inbetween the () is how many seconds it waits before doing the next things, so i put a 1 and it will wait 1 second before looping around.

local Text = script.Parent.Text

for i = 10, 1, -1 do
 Text.Text = i
wait(1)
end

So thats all you need to do to make a basic Intermission, if you dont understand it go to this videovideo, its a basic game rounds tutorial its the only one i could find that explains it good, so i hope i helped you out, make sure to check out the wiki it help alot!

Ad

Answer this question