Kelas Engine
Workspace
*Konten ini diterjemahkan menggunakan AI (Beta) dan mungkin mengandung kesalahan. Untuk melihat halaman ini dalam bahasa Inggris, klik di sini.
Rangkuman
Properti
Metode
BreakJoints(objects: Instances):() |
JoinToOutsiders(objects: Instances,jointType: Enum.JointCreationMode):() |
MakeJoints(objects: Instances):() |
UnjoinFromOutsiders(objects: Instances):() |
ZoomToExtents():() |
Acara
PersistentLoaded(player: Player):RBXScriptSignal |
Anggota yang Diwariskan
21 yang diwarisi dari WorldRoot
26 yang diwarisi dari Model
4 yang diwarisi dari PVInstance
57 yang diwarisi dari Instance
6 yang diwarisi dari Object
Referensi API
Properti
FilteringEnabled
Gravity
Contoh Kode
Tombol Gravitasi Rendah
local MOON_GRAVITY_RATIO = 1.62 / 9.81
local DEFAULT_GRAVITY = 196.2
local MOON_GRAVITY = DEFAULT_GRAVITY * MOON_GRAVITY_RATIO
-- Buat pad sentuh
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
-- Dengarkan sentuhan 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("Bright red") or BrickColor.new("Bright green")
task.wait(1)
debounce = false
end
end
pad.Touched:Connect(onPadTouched)InterpolationThrottling
PathfindingUseImprovedSearch
PlayerCharacterDestroyBehavior
PlayerScriptsUseInputActionSystemAlias
RenderingCacheOptimizations
ReplicateInstanceDestroySetting
Metode
BreakJoints
GetRealPhysicsFPS
JoinToOutsiders
Parameter
objects:Instances |
Memberikan nilai
()
MakeJoints
UnjoinFromOutsiders
Workspace:UnjoinFromOutsiders(objects:Instances):()
Parameter
objects:Instances |
Memberikan nilai
()
ZoomToExtents
Workspace:ZoomToExtents():()
Memberikan nilai
()
Acara