Aprenda
Classe do mecanismo
Workspace
Não criável
Serviço

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


Resumo
Propriedades
Métodos
BreakJoints(objects: Instances):()
Obsoleto
JoinToOutsiders(objects: Instances,jointType: Enum.JointCreationMode):()
MakeJoints(objects: Instances):()
Obsoleto
UnjoinFromOutsiders(objects: Instances):()
Membros herdados

Referência API
Propriedades
AirDensity
Ler Parallel
Recursos: Physics, Environment
Acesso à simulação
Workspace.AirDensity:number

AirTurbulenceIntensity
Ler Parallel
Recursos: Physics, Environment
Acesso à simulação
Workspace.AirTurbulenceIntensity:number

AllowThirdPartySales
Não replicado
Ler Parallel
Recursos: Monetization
Workspace.AllowThirdPartySales:boolean

AuthorityMode
Segurança do script Roblox
Ler Parallel
Workspace.AuthorityMode:Enum.AuthorityMode

AvatarUnificationMode
Não scriptável
Ler Parallel
Workspace.AvatarUnificationMode:Enum.AvatarUnificationMode

ClientAnimatorThrottling
Ler Parallel
Recursos: Animation
Workspace.ClientAnimatorThrottling:Enum.ClientAnimatorThrottlingMode

CurrentCamera
Não replicado
Ler Parallel
Recursos: Basic
Workspace.CurrentCamera:Camera

DistributedGameTime
Não replicado
Ler Parallel
Recursos: Basic
Workspace.DistributedGameTime:number

EnableSLIMAvatars
Não scriptável
Ler Parallel
Recursos: Players
Workspace.EnableSLIMAvatars:Enum.RolloutState

FallenPartsDestroyHeight
Segurança do plugin
Ler Parallel
Recursos: Basic
Workspace.FallenPartsDestroyHeight:number

FallHeightEnabled
Segurança do plugin
Ler Parallel
Recursos: Basic
Workspace.FallHeightEnabled:boolean

FilteringEnabled
Obsoleto

FluidForces
Não scriptável
Ler Parallel
Workspace.FluidForces:Enum.FluidForces

GlobalWind
Ler Parallel
Recursos: Basic
Acesso à simulação
Workspace.GlobalWind:Vector3

Gravity
Ler Parallel
Recursos: Basic
Acesso à simulação
Workspace.Gravity:number
Amostras de código
Botão de Gravidade Baixa
local MOON_GRAVITY_RATIO = 1.62 / 9.81
local DEFAULT_GRAVITY = 196.2
local MOON_GRAVITY = DEFAULT_GRAVITY * MOON_GRAVITY_RATIO
-- Cria um pad de toque
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("Verde brilhante")
pad.Parent = workspace
-- Escuta por toque no pad
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("Vermelho brilhante") or BrickColor.new("Verde brilhante")
task.wait(1)
debounce = false
end
end
pad.Touched:Connect(onPadTouched)

IKControlConstraintSupport
Não scriptável
Ler Parallel
Workspace.IKControlConstraintSupport:Enum.IKControlConstraintSupport

InsertPoint
Não replicado
Ler Parallel
Workspace.InsertPoint:Vector3

InterpolationThrottling
Obsoleto

LayeredClothingCacheOptimizations
Não scriptável
Ler Parallel
Recursos: AvatarAppearance
Workspace.LayeredClothingCacheOptimizations:Enum.RolloutState

LuauTypeCheckMode
Segurança do plugin
Ler Parallel
Workspace.LuauTypeCheckMode:Enum.LuauTypeCheckMode

MeshPartHeadsAndAccessories
Não scriptável
Ler Parallel
Workspace.MeshPartHeadsAndAccessories:Enum.MeshPartHeadsAndAccessories

MeshStreamingAndImprovedLods
Não scriptável
Ler Parallel
Workspace.MeshStreamingAndImprovedLods:Enum.RolloutState

ModelStreamingBehavior
Não scriptável
Ler Parallel
Workspace.ModelStreamingBehavior:Enum.ModelStreamingBehavior

NextGenerationReplication
Não scriptável
Ler Parallel
Workspace.NextGenerationReplication:Enum.RolloutState

NextGenerationReplicationAlias
Não replicado
Não scriptável
Segurança Roblox
Ler Parallel
Workspace.NextGenerationReplicationAlias:Enum.RolloutState

PathfindingUseImprovedSearch
Não scriptável
Ler Parallel
Workspace.PathfindingUseImprovedSearch:Enum.PathfindingUseImprovedSearch

PhysicsSteppingMethod
Não scriptável
Ler Parallel
Workspace.PhysicsSteppingMethod:Enum.PhysicsSteppingMethod

PlayerCharacterDestroyBehavior
Não scriptável
Ler Parallel
Workspace.PlayerCharacterDestroyBehavior:Enum.PlayerCharacterDestroyBehavior

PlayerScriptsUseInputActionSystem
Não scriptável
Ler Parallel
Workspace.PlayerScriptsUseInputActionSystem:Enum.RolloutState

PlayerScriptsUseInputActionSystemAlias
Não replicado
Não scriptável
Segurança Roblox
Ler Parallel
Workspace.PlayerScriptsUseInputActionSystemAlias:Enum.RolloutState

PrimalPhysicsSolver
Não scriptável
Ler Parallel
Workspace.PrimalPhysicsSolver:Enum.PrimalPhysicsSolver

RejectCharacterDeletions
Não scriptável
Ler Parallel
Workspace.RejectCharacterDeletions:Enum.RejectCharacterDeletions

RenderingCacheOptimizations
Não scriptável
Ler Parallel
Recursos: Physics
Workspace.RenderingCacheOptimizations:Enum.RenderingCacheOptimizationMode

ReplicateInstanceDestroySetting
Não scriptável
Ler Parallel
Workspace.ReplicateInstanceDestroySetting:Enum.ReplicateInstanceDestroySetting

Retargeting
Ler Parallel
Recursos: Animation
Workspace.Retargeting:Enum.AnimatorRetargetingMode

SandboxedInstanceMode
Não scriptável
Ler Parallel
Workspace.SandboxedInstanceMode:Enum.SandboxedInstanceMode

SignalBehavior
Não scriptável
Ler Parallel
Workspace.SignalBehavior:Enum.SignalBehavior

SignalBehaviorAlias
Não replicado
Não scriptável
Segurança Roblox
Ler Parallel
Workspace.SignalBehaviorAlias:Enum.SignalBehavior

StreamingEnabled
Segurança do plugin
Ler Parallel
Workspace.StreamingEnabled:boolean

StreamingEnabledAlias
Não replicado
Não scriptável
Segurança Roblox
Ler Parallel
Workspace.StreamingEnabledAlias:boolean

StreamingIntegrityMode
Não scriptável
Ler Parallel
Workspace.StreamingIntegrityMode:Enum.StreamingIntegrityMode

StreamingMinRadius
Não scriptável
Ler Parallel
Workspace.StreamingMinRadius:number

StreamingTargetRadius
Não scriptável
Ler Parallel
Workspace.StreamingTargetRadius:number

StreamOutBehavior
Não scriptável
Ler Parallel
Workspace.StreamOutBehavior:Enum.StreamOutBehavior

Terrain
Somente leitura
Não replicado
Ler Parallel
Workspace.Terrain:Terrain

TouchesUseCollisionGroups
Não scriptável
Ler Parallel
Workspace.TouchesUseCollisionGroups:boolean

UseFixedSimulation
Não scriptável
Ler Parallel
Workspace.UseFixedSimulation:Enum.RolloutState

UseFixedSimulationAlias
Não replicado
Não scriptável
Segurança Roblox
Ler Parallel
Workspace.UseFixedSimulationAlias:Enum.RolloutState

UseNewLuauTypeSolver
Não scriptável
Ler Parallel
Workspace.UseNewLuauTypeSolver:Enum.RolloutState

ValidateEnabledProximityPrompt
Não scriptável
Ler Parallel
Recursos: Basic
Workspace.ValidateEnabledProximityPrompt:Enum.RolloutState

Métodos
BreakJoints
Obsoleto

GetNumAwakeParts
Escrever Parallel
Recursos: Basic
Workspace:GetNumAwakeParts():number
Devolução

GetPhysicsThrottling
Escrever Parallel
Recursos: Basic
Workspace:GetPhysicsThrottling():number
Devolução

GetRealPhysicsFPS
Escrever Parallel
Recursos: Basic
Workspace:GetRealPhysicsFPS():number
Devolução
Amostras de código
Workspace:GetRealPhysicsFPS
local Players = game:GetService("Players")
local player = Players.LocalPlayer
while task.wait(1) do
-- Se o FPS de física real estiver acima de 65, kick o jogador
if workspace:GetRealPhysicsFPS() > 65 then
player:Kick()
end
end

GetServerTimeNow
Escrever Parallel
Recursos: Basic
Workspace:GetServerTimeNow():number
Devolução

JoinToOutsiders
Recursos: Physics
Workspace:JoinToOutsiders(
objects:Instances, jointType:Enum.JointCreationMode
):()
Parâmetros
objects:Instances
Devolução
()

MakeJoints
Obsoleto

PGSIsEnabled
Recursos: Basic
Workspace:PGSIsEnabled():boolean
Devolução

UnjoinFromOutsiders
Recursos: Physics
Workspace:UnjoinFromOutsiders(objects:Instances):()
Parâmetros
objects:Instances
Devolução
()

ZoomToExtents
Segurança do plugin
Workspace:ZoomToExtents():()
Devolução
()

Eventos
PersistentLoaded
Workspace.PersistentLoaded(player:Player):RBXScriptSignal
Parâmetros
player:Player

©2026 Roblox Corporation, Roblox, o logotipo Roblox e Powering Imagination estão entre nossas marcas registradas e não registradas nos EUA e em outros países.