Scripting Terms
Scripting Introduction
HARD
100

Why do we use variables?

To store information for later reference.

100

Where can local scripts run?

Only in folders underneath the player.

100

What are the remote event events called in local and server scripts?

OnServerEvent and OnClientEvent.

200

What is a variable?

A line of code that can store a value.
200

What are the three types of scripts?

Local, server, and module scripts.

200

Why do we use a local script for client input?

The server cannot access client events.

300

How to type a variable?

local variableName = variableValue

300

Where should we handle inputs? (keyboard presses, clicks, etc.)

In a local script.

300

Where should we handle cooldown functions? (client or server)

On the server.

400

How do you write a function?

local function functionName()

     -- Code goes here

end

functionName() -- To call the function later on.

400

How do we send inputs from the client to the server?

Through remote events.

400

What's the difference between a RemoteEvent and a RemoteFunction?

A RemoteEvent can be picked up from any script, while a RemoteFunction can only be connected to one function in one script.
500

What are the two types of functions?

Functions that are called instantly and functions that are called later in the script.

500
What is it called when we separate our scripting functions based on what they do? Keeping all scripts separate and formatted based on their functions?

OOP (Object oriented programming)

500

If we have a shop set up in our game, what should the function on the server look like to handle when a player buys an item?

buyRemoteEvent.OnServerEvent:Connect(function(item)

     -- Code to handle the purchasing

end)