Object Reference
Overview
Getting the Service Object
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local ServerStorage = game:GetService("ServerStorage")
local StarterGui = game:GetService("StarterGui")
local StarterPlayer = game:GetService("StarterPlayer")
local Players = game:GetService("Players")
...Referencing Parent Object
-- Parent of an object
local ParentPart = Part.Parent
-- Parent of a script
local ScriptParent = script.ParentReferencing Child Object
Getting All Child Objects

Getting All Players
Getting LocalPlayer (LocalScript)
Getting Humanoid from Player
Getting Player from Humanoid
Last updated