Skip to content

Instance types

Type

Write the Roblox class name. Player player is an Instance of class Player. There is no address-of, no ->, and no C pointer type.

Player player = null;
player.Name = "Kartz";
player.FindFirstChild("leaderstats");

None.

The Instance.

Player

Properties and instance methods use .: player.Name, player.FindFirstChild("leaderstats"), player.Kick(). Protected calls use :. Static names use :: (task::wait, Vector3::new). Lifetime is Roblox’s: Destroy or Janitor.

match arms use the same class name: Part p.

observable of a non-primitive becomes ObjectValue.

player.Name = "Kartz";
player.FindFirstChild("leaderstats");

Emits:

player.Name = "Kartz"
player:FindFirstChild("leaderstats")

new · operator-method · operator-property · null