Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.43 KB

File metadata and controls

50 lines (35 loc) · 1.43 KB
description This page lists all the global variables that you can use with scripts in the script builder.

Variables

{% hint style="info" %} Any global variable that are not listed here that is otherwise normally a part of Roblox should keep their vanilla behavior. {% endhint %}

The sandbox sets _G to a table that already has a set metatable, and is only shared between sandboxed scripts.

The sandbox sets shared to a table that already has a set metatable, and is only shared between sandboxed scripts.

owner

A refrence to the Player running the script.

Examples

Sets the walkspeed of the player running the script to 32.

local Character = owner.Character
if Character then
    local Humanoid = Character:FindFirstChildOfClass("Humanoid")
    if Humanoid then
        Humanoid.WalkSpeed = 32
    end
end

Kills the player running the script with :BreakJoints() if they have a character.

local Character = owner.Character
if Character then
    Character:BreakJoints()
end