Basics Flashcards

(18 cards)

1
Q

What is Workplace?

A

Everything you see in the map is from workplace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is “ClassName” in properties?

A

What it is, e.g. (a Terrain would be called “Terrain”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is “CanCollide” in properties?

A

If the player can touch the part or not, if its turned off player walks right through (e.g. walls)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can you change the values in property using scripts?

A

Yes (e.g. colour, size, material etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is “print” in a script do?

A

Prints the text/number/calculation in output (e.g. print (“hello world”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Do integers in print require brackets?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is – (2 dashes) for in a script?

A

Comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a variable?

A

A name that holds a value (e.g. “local HousePrice (name) = 300k (value)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Do i use quotations for a variable name in print? And why

A

Because regardless of the value stored in the variables name, when using quotations for “print” the exact text will be in output and not the value of it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How would i change a Part’s material to “Wood” in a script?

A

Game.Workspace.Part.Material = “Wood”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to change Transparency of a Part in a script?

A

Game.Workspace.Part.Transparency = 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to shorten my scripts? Instead of saying “game.workspace.Part”

A

Turn “Part into a variable. “Local Part = game.Workspace.Part”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a function?

A

A named block of code that performs a specific task, allowing you to reuse that code multiple times in your script by simply calling its name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is return?

A

The act of a function sending back a specific value to the part of the script where it was called

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are parameters?

A

Variables inside the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Where are parameters located in a function?

A

Inside the brackets acting as a variable, e.g. “local function myFunction(parameter1, parameter2)”.

17
Q

What does == mean?

A

Test if its equal to

18
Q

What does ~= mean?

A

Tests if its not equal to