요약
속성
메서드
BreakJoints(objects: Instances):() |
JoinToOutsiders(objects: Instances,jointType: Enum.JointCreationMode):() |
MakeJoints(objects: Instances):() |
UnjoinFromOutsiders(objects: Instances):() |
ZoomToExtents():() |
이벤트
PersistentLoaded(player: Player):RBXScriptSignal |
상속된 멤버
API 참조
속성
FilteringEnabled
Gravity
코드 샘플
낮은 중력 버튼
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("밝은 초록")
task.wait(1)
debounce = false
end
end
pad.Touched:Connect(onPadTouched)InterpolationThrottling
PathfindingUseImprovedSearch
PlayerCharacterDestroyBehavior
PlayerScriptsUseInputActionSystemAlias
RenderingCacheOptimizations
ReplicateInstanceDestroySetting
메서드
BreakJoints
GetRealPhysicsFPS
JoinToOutsiders
매개 변수
objects:Instances |
반환
()
MakeJoints
UnjoinFromOutsiders
Workspace:UnjoinFromOutsiders(objects:Instances):()
매개 변수
objects:Instances |
반환
()
ZoomToExtents
Workspace:ZoomToExtents():()
반환
()
이벤트