Workspace

Mostrar obsoleto

*Este conteúdo é traduzido por IA (Beta) e pode conter erros. Para ver a página em inglês, clique aqui.

Não criável
Serviço

Resumo

Propriedades

Propriedades herdados de ModelPropriedades herdados de PVInstance

Métodos

Métodos herdados de WorldRootMétodos herdados de ModelMétodos herdados de PVInstance

Propriedades

AirDensity

Ler Parallel

AllowThirdPartySales

Não replicado
Ler Parallel

AvatarUnificationMode

Não scriptável
Ler Parallel

ClientAnimatorThrottling

Ler Parallel

CurrentCamera

Não replicado
Ler Parallel

DistributedGameTime

Não replicado
Ler Parallel

FallHeightEnabled

Segurança do plugin
Ler Parallel

FallenPartsDestroyHeight

Segurança do plugin
Ler Parallel

FluidForces

Não scriptável
Ler Parallel

GlobalWind

Ler Parallel

Gravity

Ler Parallel

Amostras de código

Low Gravity Button

local MOON_GRAVITY_RATIO = 1.62 / 9.81
local DEFAULT_GRAVITY = 196.2
local MOON_GRAVITY = DEFAULT_GRAVITY * MOON_GRAVITY_RATIO
-- Create a touch pad
local pad = Instance.new("Part")
pad.Size = Vector3.new(5, 1, 5)
pad.Position = Vector3.new(0, 0.5, 0)
pad.Anchored = true
pad.BrickColor = BrickColor.new("Bright green")
pad.Parent = workspace
-- Listen for pad touch
local enabled = false
local debounce = false
local function onPadTouched(_hit)
if not debounce then
debounce = true
enabled = not enabled
workspace.Gravity = enabled and MOON_GRAVITY or DEFAULT_GRAVITY
pad.BrickColor = enabled and BrickColor.new("Bright red") or BrickColor.new("Bright green")
task.wait(1)
debounce = false
end
end
pad.Touched:Connect(onPadTouched)

IKControlConstraintSupport

Não scriptável
Ler Parallel

InsertPoint

Não replicado
Ler Parallel

MeshPartHeadsAndAccessories

Não scriptável
Ler Parallel

ModelStreamingBehavior

Não scriptável
Ler Parallel

MoverConstraintRootBehavior

Não scriptável
Ler Parallel

PathfindingUseImprovedSearch

Não scriptável
Ler Parallel

PhysicsImprovedSleep

Não scriptável
Ler Parallel

PhysicsSteppingMethod

Não scriptável
Ler Parallel

PlayerCharacterDestroyBehavior

Não scriptável
Ler Parallel

PrimalPhysicsSolver

Não scriptável
Ler Parallel

RejectCharacterDeletions

Não scriptável
Ler Parallel

RenderingCacheOptimizations

Não scriptável
Ler Parallel

ReplicateInstanceDestroySetting

Não scriptável
Ler Parallel
Ler Parallel

SandboxedInstanceMode

Não scriptável
Ler Parallel

SignalBehavior

Não scriptável
Ler Parallel

StreamOutBehavior

Não scriptável
Ler Parallel

StreamingEnabled

Segurança do plugin
Ler Parallel

StreamingIntegrityMode

Não scriptável
Ler Parallel

StreamingMinRadius

Não scriptável
Ler Parallel

StreamingTargetRadius

Não scriptável
Ler Parallel

Terrain

Somente leitura
Não replicado
Ler Parallel

TouchEventsUseCollisionGroups

Não scriptável
Ler Parallel

TouchesUseCollisionGroups

Não scriptável
Ler Parallel

Métodos

GetNumAwakeParts

Escrever Parallel

Devolução

GetPhysicsThrottling

Escrever Parallel

Devolução

GetRealPhysicsFPS

Escrever Parallel

Devolução

Amostras de código

Workspace:GetRealPhysicsFPS

local Players = game:GetService("Players")
local player = Players.LocalPlayer
while task.wait(1) do
if workspace:GetRealPhysicsFPS() > 65 then
player:Kick()
end
end

GetServerTimeNow

Escrever Parallel

Devolução

JoinToOutsiders

()

Parâmetros

objects: Instances
Valor Padrão: ""
Valor Padrão: ""

Devolução

()

PGSIsEnabled


Devolução

UnjoinFromOutsiders

()

Parâmetros

objects: Instances
Valor Padrão: ""

Devolução

()

ZoomToExtents

()
Segurança do plugin

Devolução

()

Eventos

PersistentLoaded

Parâmetros

player: Player