LocalScript

LocalScript : BaseScript

Overview

The LocalScript class provides a framework for executing Lua code that affects only the local player's experience. This makes it an essential tool for handling client-specific tasks.

Description

The LocalScript class is a type of script that runs Lua code on the client-side, meaning it executes on the player's device rather than the server. It is used to handle client-specific functionality, such as user interface (UI) interactions, camera manipulation, and other player-localized features. Unlike Script, which runs on the server, LocalScript is designed to interact with objects and services that are exclusive to a specific player.

Properties

Methods

Events