getting-started
basic usage
Let's ensure flight is working.
To start, let's apply flight in a very basic manner.
- Import the flight
ModuleScriptintoReplicatedStorage - Start by inserting a
ScriptintoServerScriptService - Inside the script, try making a basic state
const flight = require("@game/ReplicatedStorage/flight")
const myNumber = flight.state.value(0)
print(myNumber:peek()) --> 0
myNumber:set(5)
print(myNumber:peek()) --> 5