Apprendre
Classe de moteur
Workspace
Création impossible
Service

*Ce contenu est traduit en utilisant l'IA (Beta) et peut contenir des erreurs. Pour consulter cette page en anglais, clique ici.


Résumé
Propriétés
Membres hérités

Référence API
Propriétés
AirDensity
Lecture parallèle
Capacités : Physics, Environment
Accès à la simulation
Workspace.AirDensity:number

AirTurbulenceIntensity
Lecture parallèle
Capacités : Physics, Environment
Accès à la simulation
Workspace.AirTurbulenceIntensity:number

AllowThirdPartySales
Non répliqué
Lecture parallèle
Capacités : Monetization
Workspace.AllowThirdPartySales:boolean

AuthorityMode
Sécurité des scripts Roblox
Lecture parallèle
Workspace.AuthorityMode:Enum.AuthorityMode

AvatarUnificationMode
Non scriptable
Lecture parallèle
Workspace.AvatarUnificationMode:Enum.AvatarUnificationMode

ClientAnimatorThrottling
Lecture parallèle
Capacités : Animation
Workspace.ClientAnimatorThrottling:Enum.ClientAnimatorThrottlingMode

CurrentCamera
Non répliqué
Lecture parallèle
Capacités : Basic
Workspace.CurrentCamera:Camera

DistributedGameTime
Non répliqué
Lecture parallèle
Capacités : Basic
Workspace.DistributedGameTime:number
Échantillons de code
Temps de jeu distribué
local Workspace = game:GetService("Workspace")
print(Workspace.DistributedGameTime) -- Temps depuis le début du jeu
print(os.time()) -- Temps depuis l'époque (1 janvier 1970, 00:00:00) UTC
print(tick()) -- Temps depuis l'époque (1 janvier 1970, 00:00:00) temps système
print(time()) -- Temps depuis le début du jeu
print(elapsedTime()) -- Temps depuis que Roblox a commencé à fonctionner

EnableSLIMAvatars
Non scriptable
Lecture parallèle
Capacités : Players
Workspace.EnableSLIMAvatars:Enum.RolloutState

FallenPartsDestroyHeight
Sécurité des plugins
Lecture parallèle
Capacités : Basic
Workspace.FallenPartsDestroyHeight:number

FallHeightEnabled
Sécurité des plugins
Lecture parallèle
Capacités : Basic
Workspace.FallHeightEnabled:boolean

FilteringEnabled
Déprécié

FluidForces
Non scriptable
Lecture parallèle
Workspace.FluidForces:Enum.FluidForces

GlobalWind
Lecture parallèle
Capacités : Basic
Accès à la simulation
Workspace.GlobalWind:Vector3

Gravity
Lecture parallèle
Capacités : Basic
Accès à la simulation
Workspace.Gravity:number
Échantillons de code
Bouton de Gravité Faible
local MOON_GRAVITY_RATIO = 1.62 / 9.81
local DEFAULT_GRAVITY = 196.2
local MOON_GRAVITY = DEFAULT_GRAVITY * MOON_GRAVITY_RATIO
-- Créer un pad tactile
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("Vert brillant")
pad.Parent = workspace
-- Écouter le toucher du 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("Rouge brillant") or BrickColor.new("Vert brillant")
task.wait(1)
debounce = false
end
end
pad.Touched:Connect(onPadTouched)

IKControlConstraintSupport
Non scriptable
Lecture parallèle
Workspace.IKControlConstraintSupport:Enum.IKControlConstraintSupport

ImprovedAnimationConstraint
Non scriptable
Lecture parallèle
Workspace.ImprovedAnimationConstraint:Enum.RolloutState

ImprovedPhysicsReplication
Non scriptable
Lecture parallèle
Workspace.ImprovedPhysicsReplication:Enum.RolloutState

InsertPoint
Non répliqué
Lecture parallèle
Workspace.InsertPoint:Vector3

InterpolationThrottling
Déprécié

LayeredClothingCacheOptimizations
Non scriptable
Lecture parallèle
Capacités : AvatarAppearance
Workspace.LayeredClothingCacheOptimizations:Enum.RolloutState

LuauTypeCheckMode
Sécurité des plugins
Lecture parallèle
Workspace.LuauTypeCheckMode:Enum.LuauTypeCheckMode

MeshPartHeadsAndAccessories
Non scriptable
Lecture parallèle
Workspace.MeshPartHeadsAndAccessories:Enum.MeshPartHeadsAndAccessories

MeshStreamingAndImprovedLods
Non scriptable
Lecture parallèle
Workspace.MeshStreamingAndImprovedLods:Enum.RolloutState

ModelStreamingBehavior
Non scriptable
Lecture parallèle
Workspace.ModelStreamingBehavior:Enum.ModelStreamingBehavior

NextGenerationReplication
Non scriptable
Lecture parallèle
Workspace.NextGenerationReplication:Enum.RolloutState

NextGenerationReplicationAlias
Non répliqué
Non scriptable
Sécurité Roblox
Lecture parallèle
Workspace.NextGenerationReplicationAlias:Enum.RolloutState

PathfindingUseImprovedSearch
Non scriptable
Lecture parallèle
Workspace.PathfindingUseImprovedSearch:Enum.PathfindingUseImprovedSearch

PhysicsSteppingMethod
Non scriptable
Lecture parallèle
Workspace.PhysicsSteppingMethod:Enum.PhysicsSteppingMethod

PlayerCharacterDestroyBehavior
Non scriptable
Lecture parallèle
Workspace.PlayerCharacterDestroyBehavior:Enum.PlayerCharacterDestroyBehavior

PlayerScriptsUseInputActionSystem
Non scriptable
Lecture parallèle
Workspace.PlayerScriptsUseInputActionSystem:Enum.RolloutState

PlayerScriptsUseInputActionSystemAlias
Non répliqué
Non scriptable
Sécurité Roblox
Lecture parallèle
Workspace.PlayerScriptsUseInputActionSystemAlias:Enum.RolloutState

PredictiveStreamingMode
Non scriptable
Lecture parallèle
Workspace.PredictiveStreamingMode:Enum.PredictiveStreamingMode

PrimalPhysicsSolver
Non scriptable
Lecture parallèle
Workspace.PrimalPhysicsSolver:Enum.PrimalPhysicsSolver

RejectCharacterDeletions
Non scriptable
Lecture parallèle
Workspace.RejectCharacterDeletions:Enum.RejectCharacterDeletions

RenderingCacheOptimizations
Non scriptable
Lecture parallèle
Capacités : Physics
Workspace.RenderingCacheOptimizations:Enum.RenderingCacheOptimizationMode

ReplicateInstanceDestroySetting
Non scriptable
Lecture parallèle
Workspace.ReplicateInstanceDestroySetting:Enum.ReplicateInstanceDestroySetting

Retargeting
Lecture parallèle
Capacités : Animation
Workspace.Retargeting:Enum.AnimatorRetargetingMode

SandboxedInstanceMode
Non scriptable
Lecture parallèle
Workspace.SandboxedInstanceMode:Enum.SandboxedInstanceMode

SignalBehavior
Non scriptable
Lecture parallèle
Workspace.SignalBehavior:Enum.SignalBehavior

SignalBehaviorAlias
Non répliqué
Non scriptable
Sécurité Roblox
Lecture parallèle
Workspace.SignalBehaviorAlias:Enum.SignalBehavior

StreamingEnabled
Sécurité des plugins
Lecture parallèle
Workspace.StreamingEnabled:boolean

StreamingEnabledAlias
Non répliqué
Non scriptable
Sécurité Roblox
Lecture parallèle
Workspace.StreamingEnabledAlias:boolean

StreamingIntegrityMode
Non scriptable
Lecture parallèle
Workspace.StreamingIntegrityMode:Enum.StreamingIntegrityMode

StreamingMinRadius
Non scriptable
Lecture parallèle
Workspace.StreamingMinRadius:number

StreamingTargetRadius
Non scriptable
Lecture parallèle
Workspace.StreamingTargetRadius:number

StreamOutBehavior
Non scriptable
Lecture parallèle
Workspace.StreamOutBehavior:Enum.StreamOutBehavior

Terrain
Lecture uniquement
Non répliqué
Lecture parallèle
Workspace.Terrain:Terrain

TouchesUseCollisionGroups
Non scriptable
Lecture parallèle
Workspace.TouchesUseCollisionGroups:boolean

UseFixedSimulation
Non scriptable
Lecture parallèle
Workspace.UseFixedSimulation:Enum.RolloutState

UseFixedSimulationAlias
Non répliqué
Non scriptable
Sécurité Roblox
Lecture parallèle
Workspace.UseFixedSimulationAlias:Enum.RolloutState

UseNewLuauTypeSolver
Non scriptable
Lecture parallèle
Workspace.UseNewLuauTypeSolver:Enum.RolloutState

Méthodes
ApplyRecommendedStreamingSettings
Sécurité des plugins
Workspace:ApplyRecommendedStreamingSettings():boolean
Retours

BreakJoints
Déprécié

GetNumAwakeParts
Écrire en parallèle
Capacités : Basic
Workspace:GetNumAwakeParts():number
Retours

GetPhysicsThrottling
Écrire en parallèle
Capacités : Basic
Workspace:GetPhysicsThrottling():number
Retours

GetRealPhysicsFPS
Écrire en parallèle
Capacités : Basic
Workspace:GetRealPhysicsFPS():number
Retours
Échantillons de code
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
Écrire en parallèle
Capacités : Basic
Workspace:GetServerTimeNow():number
Retours

JoinToOutsiders
Capacités : Physics
Workspace:JoinToOutsiders(
objects:Instances, jointType:Enum.JointCreationMode
):()
Paramètres
objects:Instances
Retours
()

MakeJoints
Déprécié

PGSIsEnabled
Capacités : Basic
Workspace:PGSIsEnabled():boolean
Retours

UnjoinFromOutsiders
Capacités : Physics
Workspace:UnjoinFromOutsiders(objects:Instances):()
Paramètres
objects:Instances
Retours
()

ZoomToExtents
Sécurité des plugins
Workspace:ZoomToExtents():()
Retours
()

Événements
PersistentLoaded
Workspace.PersistentLoaded(player:Player):RBXScriptSignal
Paramètres
player:Player

©2026 Société Roblox. Roblox, le logo Roblox et Powering Imagination font partie de nos marques déposées aux États-Unis et dans d'autres pays.