學習
引擎類別
Workspace
無法建立
服務

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡


概要
屬性
方法
BreakJoints(objects: Instances):()
已棄用
JoinToOutsiders(objects: Instances,jointType: Enum.JointCreationMode):()
MakeJoints(objects: Instances):()
已棄用
UnjoinFromOutsiders(objects: Instances):()
繼承成員

API 參考
屬性
AirDensity
平行讀取
功能: Physics, Environment
模擬存取權
Workspace.AirDensity:number

AirTurbulenceIntensity
平行讀取
功能: Physics, Environment
模擬存取權
Workspace.AirTurbulenceIntensity:number

AllowThirdPartySales
未複製
平行讀取
功能: Monetization
Workspace.AllowThirdPartySales:boolean

AuthorityMode
Roblox 指令碼安全性
平行讀取
Workspace.AuthorityMode:Enum.AuthorityMode

AvatarUnificationMode
無法建立指令碼
平行讀取
Workspace.AvatarUnificationMode:Enum.AvatarUnificationMode

ClientAnimatorThrottling
平行讀取
功能: Animation
Workspace.ClientAnimatorThrottling:Enum.ClientAnimatorThrottlingMode

CurrentCamera
未複製
平行讀取
功能: Basic
Workspace.CurrentCamera:Camera

DistributedGameTime
未複製
平行讀取
功能: Basic
Workspace.DistributedGameTime:number

EnableSLIMAvatars
無法建立指令碼
平行讀取
功能: Players
Workspace.EnableSLIMAvatars:Enum.RolloutState

FallenPartsDestroyHeight
外掛程式安全性
平行讀取
功能: Basic
Workspace.FallenPartsDestroyHeight:number

FallHeightEnabled
外掛程式安全性
平行讀取
功能: Basic
Workspace.FallHeightEnabled:boolean

FilteringEnabled
已棄用

FluidForces
無法建立指令碼
平行讀取
Workspace.FluidForces:Enum.FluidForces

GlobalWind
平行讀取
功能: Basic
模擬存取權
Workspace.GlobalWind:Vector3

Gravity
平行讀取
功能: Basic
模擬存取權
Workspace.Gravity:number
範例程式碼
低重力按鈕
local MOON_GRAVITY_RATIO = 1.62 / 9.81
local DEFAULT_GRAVITY = 196.2
local\
MOON_GRAVITY = DEFAULT_GRAVITY * MOON_GRAVITY_RATIO
-- 創建一個觸摸板
\ 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("亮綠色")
pad.Parent = workspace
-- 監聽觸摸板的觸摸事件
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("亮紅色") or BrickColor.new("亮綠色")
\ ttask.wait(1)
debounce = false
end
end
pad.Touched:Connect(onPadTouched)

IKControlConstraintSupport
無法建立指令碼
平行讀取
Workspace.IKControlConstraintSupport:Enum.IKControlConstraintSupport

InsertPoint
未複製
平行讀取
Workspace.InsertPoint:Vector3

InterpolationThrottling
已棄用

LayeredClothingCacheOptimizations
無法建立指令碼
平行讀取
功能: AvatarAppearance
Workspace.LayeredClothingCacheOptimizations:Enum.RolloutState

LuauTypeCheckMode
外掛程式安全性
平行讀取
Workspace.LuauTypeCheckMode:Enum.LuauTypeCheckMode

MeshPartHeadsAndAccessories
無法建立指令碼
平行讀取
Workspace.MeshPartHeadsAndAccessories:Enum.MeshPartHeadsAndAccessories

MeshStreamingAndImprovedLods
無法建立指令碼
平行讀取
Workspace.MeshStreamingAndImprovedLods:Enum.RolloutState

ModelStreamingBehavior
無法建立指令碼
平行讀取
Workspace.ModelStreamingBehavior:Enum.ModelStreamingBehavior

NextGenerationReplication
無法建立指令碼
平行讀取
Workspace.NextGenerationReplication:Enum.RolloutState

NextGenerationReplicationAlias
未複製
無法建立指令碼
Roblox 安全性
平行讀取
Workspace.NextGenerationReplicationAlias:Enum.RolloutState

PathfindingUseImprovedSearch
無法建立指令碼
平行讀取
Workspace.PathfindingUseImprovedSearch:Enum.PathfindingUseImprovedSearch

PhysicsSteppingMethod
無法建立指令碼
平行讀取
Workspace.PhysicsSteppingMethod:Enum.PhysicsSteppingMethod

PlayerCharacterDestroyBehavior
無法建立指令碼
平行讀取
Workspace.PlayerCharacterDestroyBehavior:Enum.PlayerCharacterDestroyBehavior

PlayerScriptsUseInputActionSystem
無法建立指令碼
平行讀取
Workspace.PlayerScriptsUseInputActionSystem:Enum.RolloutState

PlayerScriptsUseInputActionSystemAlias
未複製
無法建立指令碼
Roblox 安全性
平行讀取
Workspace.PlayerScriptsUseInputActionSystemAlias:Enum.RolloutState

PrimalPhysicsSolver
無法建立指令碼
平行讀取
Workspace.PrimalPhysicsSolver:Enum.PrimalPhysicsSolver

RejectCharacterDeletions
無法建立指令碼
平行讀取
Workspace.RejectCharacterDeletions:Enum.RejectCharacterDeletions

RenderingCacheOptimizations
無法建立指令碼
平行讀取
功能: Physics
Workspace.RenderingCacheOptimizations:Enum.RenderingCacheOptimizationMode

ReplicateInstanceDestroySetting
無法建立指令碼
平行讀取
Workspace.ReplicateInstanceDestroySetting:Enum.ReplicateInstanceDestroySetting

Retargeting
平行讀取
功能: Animation
Workspace.Retargeting:Enum.AnimatorRetargetingMode

SandboxedInstanceMode
無法建立指令碼
平行讀取
Workspace.SandboxedInstanceMode:Enum.SandboxedInstanceMode

SignalBehavior
無法建立指令碼
平行讀取
Workspace.SignalBehavior:Enum.SignalBehavior

SignalBehaviorAlias
未複製
無法建立指令碼
Roblox 安全性
平行讀取
Workspace.SignalBehaviorAlias:Enum.SignalBehavior

StreamingEnabled
外掛程式安全性
平行讀取
Workspace.StreamingEnabled:boolean

StreamingEnabledAlias
未複製
無法建立指令碼
Roblox 安全性
平行讀取
Workspace.StreamingEnabledAlias:boolean

StreamingIntegrityMode
無法建立指令碼
平行讀取
Workspace.StreamingIntegrityMode:Enum.StreamingIntegrityMode

StreamingMinRadius
無法建立指令碼
平行讀取
Workspace.StreamingMinRadius:number

StreamingTargetRadius
無法建立指令碼
平行讀取
Workspace.StreamingTargetRadius:number

StreamOutBehavior
無法建立指令碼
平行讀取
Workspace.StreamOutBehavior:Enum.StreamOutBehavior

Terrain
唯讀
未複製
平行讀取
Workspace.Terrain:Terrain

TouchesUseCollisionGroups
無法建立指令碼
平行讀取
Workspace.TouchesUseCollisionGroups:boolean

UseFixedSimulation
無法建立指令碼
平行讀取
Workspace.UseFixedSimulation:Enum.RolloutState

UseFixedSimulationAlias
未複製
無法建立指令碼
Roblox 安全性
平行讀取
Workspace.UseFixedSimulationAlias:Enum.RolloutState

UseNewLuauTypeSolver
無法建立指令碼
平行讀取
Workspace.UseNewLuauTypeSolver:Enum.RolloutState

ValidateEnabledProximityPrompt
無法建立指令碼
平行讀取
功能: Basic
Workspace.ValidateEnabledProximityPrompt:Enum.RolloutState

方法
BreakJoints
已棄用

GetNumAwakeParts
平行寫入
功能: Basic
Workspace:GetNumAwakeParts():number
返回

GetPhysicsThrottling
平行寫入
功能: Basic
Workspace:GetPhysicsThrottling():number
返回

GetRealPhysicsFPS
平行寫入
功能: Basic
Workspace:GetRealPhysicsFPS():number
返回
範例程式碼
工作區:獲取真實物理FPS
local Players = game:GetService("Players")
local player = Players.LocalPlayer
while task.wait(1) do
if workspace:GetRealPhysicsFPS() > 65 then
player:Kick() -- 踢出玩家
end
end

GetServerTimeNow
平行寫入
功能: Basic
Workspace:GetServerTimeNow():number
返回

JoinToOutsiders
功能: Physics
Workspace:JoinToOutsiders(
objects:Instances, jointType:Enum.JointCreationMode
):()
參數
objects:Instances
返回
()

MakeJoints
已棄用

PGSIsEnabled
功能: Basic
Workspace:PGSIsEnabled():boolean
返回

UnjoinFromOutsiders
功能: Physics
Workspace:UnjoinFromOutsiders(objects:Instances):()
參數
objects:Instances
返回
()

ZoomToExtents
外掛程式安全性
Workspace:ZoomToExtents():()
返回
()

活動
PersistentLoaded
Workspace.PersistentLoaded(player:Player):RBXScriptSignal
參數
player:Player

©2026 Roblox Corporation、Roblox、Roblox 標誌及 Powering Imagination 是我們在美國及其他國家地區的部分註冊與未註冊商標。