Why do we use variables?
To store information for later reference.
Where can local scripts run?
Only in folders underneath the player.
What are the remote event events called in local and server scripts?
OnServerEvent and OnClientEvent.
What is a variable?
What are the three types of scripts?
Local, server, and module scripts.
Why do we use a local script for client input?
The server cannot access client events.
How to type a variable?
local variableName = variableValue
Where should we handle inputs? (keyboard presses, clicks, etc.)
In a local script.
Where should we handle cooldown functions? (client or server)
On the server.
How do you write a function?
local function functionName()
-- Code goes here
end
functionName() -- To call the function later on.
How do we send inputs from the client to the server?
Through remote events.
What's the difference between a RemoteEvent and a RemoteFunction?
What are the two types of functions?
Functions that are called instantly and functions that are called later in the script.
OOP (Object oriented programming)
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)