local ghost = new Part()
ghost.CanCollide = false
ghost.Transparency = 0.5
ghost.Parent = world
PhysicsInstance
Inherits: DynamicInstance
Not creatable
This class cannot be created with the
new keyword.Properties
Anchored boolean
AngularVelocity Vector3
AssemblyLocalOffset CMatrix
CanCollide boolean
LinearVelocity Vector3
local ball = new Part()
ball.Shape = PartShape.Ball
ball.Parent = world
ball.LinearVelocity = Vector3(0, 50, 0)
Mass number read-only
Massless boolean
Functions
local sensor = world.FindFirstChild("Sensor")
if sensor:
for hit in sensor.GetTouching():
if hit.IsA("Part"):
hit.Color = Color3(1, 0, 0)
local bodyA = world.FindFirstChild("BodyA")
local bodyB = world.FindFirstChild("BodyB")
if bodyA and bodyB:
local weld = bodyA.MakeJoint(bodyB)
SetNetworkOwner(player: Player)
Properties
Functions
Speak(text: string, duration: number = 5)
Properties
IgnoreParent boolean
Transparency number
Visible boolean
Properties
Archivable boolean
IsInDataModel boolean read-only
IsInWorld boolean read-only
Locked boolean
Name string
Parent Instance?
SortIndex number read-only
Functions
AttachCoreScript(path: string)
AttachScript(path: string)
Destroy()
DestroyAfter(delaySeconds: number)
DetachCoreScript(path: string)
DetachScript(path: string)
GetScriptCount() Returns number
GetScriptPath(index: number) Returns string
IsDescendantOfClass(className: string) Returns boolean
MoveAfter(sibling: Instance)
MoveBefore(sibling: Instance)
Properties
ClassName string read-only
Functions
IsA(className: string) Returns boolean
Signals
Changed string