# This is our main script.
# It runs when the game starts.
using { /Fortnite.com/Devices }
# We define a variable for our cinematic.
# A variable is a box that holds a value.
# Here, the box holds our Cinematic Sequence device.
OpeningCinematic: CinematicSequenceDevice = CinematicSequenceDevice.Create()
# This function runs first.
Start<public>(): void =
# Add a camera to all players.
# This makes the camera follow the player.
Camera.AddToAll()
# Play the opening movie.
# This tells the device to start animating.
OpeningCinematic.Play()
Verse Library
verse
01 Fragment
Adds cameras to all players and plays an opening cinematic sequence when the game begins.
verse-library/integrating-cinematics/01-fragment.verse