Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
Stats = :()
CoreGui = :()
LocalPlayer = Players.LocalPlayer
ParentGui = (gethui ()) CoreGui
ParentGui:()
ParentGui.KMStudios_MoveBlocksMenu:()
ParentGui:()
ParentGui.KMStudios_StatsOverlay:()
scriptDestroyed =
globalConnections = {}
(conn)
conn
scriptDestroyed
conn.Connected
conn:()
conn
.(globalConnections, conn)
conn
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
ScreenGui.Parent = ParentGui
StatsGui = .()
StatsGui.Name =
StatsGui.ResetOnSpawn =
StatsGui.ZIndexBehavior = .ZIndexBehavior.Sibling
StatsGui.Parent = ParentGui
PerfLabel = .()
PerfLabel.Name =
PerfLabel.AnchorPoint = .(, )
PerfLabel.Size = .(, , , )
PerfLabel.Position = .(, -, , -)
PerfLabel.BackgroundTransparency =
PerfLabel.Text =
PerfLabel.TextColor3 = .(, , )
PerfLabel.TextStrokeTransparency =
PerfLabel.Font = .Font.GothamBold
PerfLabel.TextSize =
PerfLabel.TextXAlignment = .TextXAlignment.Right
PerfLabel.TextYAlignment = .TextYAlignment.Bottom
PerfLabel.Parent = StatsGui
()
pingMs =
(()
network = Stats Stats:()
serverStats = network network:()
pingItem = serverStats serverStats:()
pingItem (pingItem.GetValue) ==
rawVal = pingItem:()
(rawVal) == rawVal == rawVal rawVal >= rawVal < .huge
pingMs = .(rawVal)
)
pingMs
fpsFrames =
fpsTimer =
currentFps =
(RunService.RenderStepped:((dt)
scriptDestroyed
(dt) ~= dt <= dt ~= dt dt >= .huge
dt = /
fpsFrames +=
fpsTimer += dt
fpsTimer >=
currentFps = .(, .(fpsFrames / fpsTimer))
pingMs = ()
pingMs ~=
PerfLabel.Text = .(, currentFps, pingMs)
PerfLabel.Text = .(, currentFps)
fpsFrames =
fpsTimer =
))
States = {
GrabBlock =
}
HoldDistance =
MIN_HOLD_DISTANCE =
MAX_HOLD_DISTANCE =
STEP_HOLD_DISTANCE =
HeightOffset =
MIN_HEIGHT_OFFSET = -
MAX_HEIGHT_OFFSET =
STEP_HEIGHT_OFFSET =
ExtraYawDeg =
ExtraPitchDeg =
ROTATE_STEP_DEG =
CurrentLang =
SecondPageOpen =
OptionLabels = {}
OptionButtons = {}
DistanceLabel
DistanceInput
HeightLabel
RotateLabel
isHoldingObject =
Translations = {
PL = {
subtitle = ,
opt1 = ,
distPrefix = ,
heightPrefix = ,
heightSuffix = ,
rotPrefix = ,
infoTitle = ,
langHeader = ,
noteText =
},
EN = {
subtitle = ,
opt1 = ,
distPrefix = ,
heightPrefix = ,
heightSuffix = ,
rotPrefix = ,
infoTitle = ,
langHeader = ,
noteText =
}
}
(num)
num >
.. (.(num))
(.(num))
(newVal)
num = (newVal)
num num ~= num
HoldDistance = .(.(num), MIN_HOLD_DISTANCE, MAX_HOLD_DISTANCE)
DistanceLabel
DistanceLabel.Text = Translations[CurrentLang].distPrefix
DistanceInput
DistanceInput.Text = (HoldDistance) ..
()
(HoldDistance)
()
HeightLabel
t = Translations[CurrentLang]
HeightLabel.Text = t.heightPrefix .. (HeightOffset) .. t.heightSuffix
()
RotateLabel
t = Translations[CurrentLang]
RotateLabel.Text = t.rotPrefix .. (ExtraYawDeg) ..
(pos, guiObj)
guiObj guiObj.Parent
guiObj:()
guiObj.Visible
absPos = guiObj.AbsolutePosition
absSize = guiObj.AbsoluteSize
pos.X >= absPos.X
pos.X <= (absPos.X + absSize.X)
pos.Y >= absPos.Y
pos.Y <= (absPos.Y + absSize.Y)
(dragHandle, targetFrame, onClickCallback, ignoredObjects)
dragging =
dragMode =
activeTouch =
dragStart = .zero
startPos = targetFrame.Position
moved =
moveConn =
endConn =
()
moveConn
moveConn.Connected
moveConn:()
moveConn =
endConn
endConn.Connected
endConn:()
endConn =
(fireClick)
wasClick = fireClick ( moved)
dragging =
dragMode =
activeTouch =
()
wasClick onClickCallback scriptDestroyed
()
(pos)
ignoredObjects
_, obj (ignoredObjects)
(pos, obj)
(pos)
delta = pos - dragStart
delta.Magnitude >
moved =
targetFrame.Position = .(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
beganConn = dragHandle.InputBegan:((input)
scriptDestroyed dragging
(input.Position)
input.UserInputType == .UserInputType.MouseButton1
dragging =
dragMode =
activeTouch =
moved =
dragStart = input.Position
startPos = targetFrame.Position
()
moveConn = UserInputService.InputChanged:((changedInput)
dragging dragMode ~= scriptDestroyed
changedInput.UserInputType == .UserInputType.MouseMovement
UserInputService:(.UserInputType.MouseButton1)
()
(changedInput.Position)
)
endConn = UserInputService.InputEnded:((endedInput)
dragging dragMode == endedInput.UserInputType == .UserInputType.MouseButton1
()
)
input.UserInputType == .UserInputType.Touch
dragging =
dragMode =
activeTouch = input
moved =
dragStart = input.Position
startPos = targetFrame.Position
()
moveConn = UserInputService.InputChanged:((changedInput)
dragging dragMode ~= changedInput ~= activeTouch scriptDestroyed
changedInput.UserInputType == .UserInputType.Touch
(changedInput.Position)
)
endConn = UserInputService.InputEnded:((endedInput)
dragging dragMode == endedInput == activeTouch
()
)
)
(beganConn)
(dragHandle.Destroying:(()
()
))
INFO_BOARD_SIZE = .(, , , )
MainFrame = .()
MainFrame.Name =
MainFrame.Size = INFO_BOARD_SIZE
MainFrame.Position = .(, -, , -)
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.BorderColor3 = .(, , )
MainFrame.Parent = ScreenGui
TopBar = .()
TopBar.Name =
TopBar.Size = .(, , , )
TopBar.BackgroundColor3 = .(, , )
TopBar.BorderSizePixel =
TopBar.Parent = MainFrame
BrandLabel = .()
BrandLabel.Size = .(, , , )
BrandLabel.Position = .(, , , )
BrandLabel.BackgroundTransparency =
BrandLabel.Text =
BrandLabel.TextColor3 = .(, , )
BrandLabel.Font = .Font.GothamBold
BrandLabel.TextSize =
BrandLabel.TextXAlignment = .TextXAlignment.Left
BrandLabel.Parent = TopBar
VerifiedBadge = .()
VerifiedBadge.Size = .(, , , )
VerifiedBadge.Position = .(, , , -)
VerifiedBadge.BackgroundColor3 = .(, , )
VerifiedBadge.BorderSizePixel =
VerifiedBadge.Parent = TopBar
BadgeCorner = .()
BadgeCorner.CornerRadius = .(, )
BadgeCorner.Parent = VerifiedBadge
CheckMark = .()
CheckMark.Size = .(, , , )
CheckMark.BackgroundTransparency =
CheckMark.Text =
CheckMark.TextColor3 = .(, , )
CheckMark.Font = .Font.GothamBold
CheckMark.TextSize =
CheckMark.Parent = VerifiedBadge
SubtitleLabel = .()
SubtitleLabel.Size = .(, , , )
SubtitleLabel.Position = .(, , , )
SubtitleLabel.BackgroundTransparency =
SubtitleLabel.Text = Translations[CurrentLang].subtitle
SubtitleLabel.TextColor3 = .(, , )
SubtitleLabel.Font = .Font.GothamMedium
SubtitleLabel.TextSize =
SubtitleLabel.TextXAlignment = .TextXAlignment.Left
SubtitleLabel.Parent = TopBar
PageArrowBtn = .()
PageArrowBtn.Name =
PageArrowBtn.Size = .(, , , )
PageArrowBtn.Position = .(, -, , )
PageArrowBtn.BackgroundColor3 = .(, , )
PageArrowBtn.BorderSizePixel =
PageArrowBtn.Text =
PageArrowBtn.TextColor3 = .(, , )
PageArrowBtn.Font = .Font.GothamBold
PageArrowBtn.TextSize =
PageArrowBtn.ZIndex =
PageArrowBtn.Parent = TopBar
CloseBtn = .()
CloseBtn.Name =
CloseBtn.Size = .(, , , )
CloseBtn.Position = .(, -, , )
CloseBtn.BackgroundColor3 = .(, , )
CloseBtn.BorderSizePixel =
CloseBtn.Text =
CloseBtn.TextColor3 = .(, , )
CloseBtn.Font = .Font.GothamBold
CloseBtn.TextSize =
CloseBtn.ZIndex =
CloseBtn.Parent = TopBar
MiniKM = .()
MiniKM.Name =
MiniKM.Size = .(, , , )
MiniKM.Position = .(, , , -)
MiniKM.BackgroundColor3 = .(, , )
MiniKM.BorderSizePixel =
MiniKM.BorderColor3 = .(, , )
MiniKM.Text =
MiniKM.TextColor3 = .(, , )
MiniKM.Font = .Font.GothamBold
MiniKM.TextSize =
MiniKM.Visible =
MiniKM.AutoButtonColor =
MiniKM.Parent = ScreenGui
(TopBar, MainFrame, , { PageArrowBtn, CloseBtn })
(MiniKM, MiniKM, ()
MiniKM.Visible =
MainFrame.Visible =
)
(CloseBtn.MouseButton1Click:(()
scriptDestroyed
MainFrame.Visible =
MiniKM.Visible =
))
CrosshairFrame = .()
CrosshairFrame.Name =
CrosshairFrame.AnchorPoint = .(, )
CrosshairFrame.Position = .(, , , )
CrosshairFrame.Size = .(, , , )
CrosshairFrame.BackgroundTransparency =
CrosshairFrame.Visible =
CrosshairFrame.Parent = ScreenGui
CrossH = .()
CrossH.AnchorPoint = .(, )
CrossH.Position = .(, , , )
CrossH.Size = .(, , , )
CrossH.BackgroundColor3 = .(, , )
CrossH.BorderSizePixel =
CrossH.Parent = CrosshairFrame
CrossV = .()
CrossV.AnchorPoint = .(, )
CrossV.Position = .(, , , )
CrossV.Size = .(, , , )
CrossV.BackgroundColor3 = .(, , )
CrossV.BorderSizePixel =
CrossV.Parent = CrosshairFrame
CrossDot = .()
CrossDot.AnchorPoint = .(, )
CrossDot.Position = .(, , , )
CrossDot.Size = .(, , , )
CrossDot.BackgroundColor3 = .(, , )
CrossDot.BorderSizePixel =
CrossDot.Parent = CrosshairFrame
Page1Scroll = .()
Page1Scroll.Name =
Page1Scroll.Size = .(, -, , -)
Page1Scroll.Position = .(, , , )
Page1Scroll.BackgroundColor3 = .(, , )
Page1Scroll.BorderSizePixel =
Page1Scroll.BorderColor3 = .(, , )
Page1Scroll.ScrollBarThickness =
Page1Scroll.ScrollBarImageColor3 = .(, , )
Page1Scroll.CanvasSize = .(, , , )
Page1Scroll.AutomaticCanvasSize = .AutomaticSize.Y
Page1Scroll.Visible =
Page1Scroll.Parent = MainFrame
ListLayout = .()
ListLayout.Padding = .(, )
ListLayout.SortOrder = .SortOrder.LayoutOrder
ListLayout.Parent = Page1Scroll
ListPadding = .()
ListPadding.PaddingTop = .(, )
ListPadding.PaddingBottom = .(, )
ListPadding.PaddingLeft = .(, )
ListPadding.PaddingRight = .(, )
ListPadding.Parent = Page1Scroll
(stateKey, value)
States[stateKey] = value
btn = OptionButtons[stateKey]
btn
value
btn.Text =
btn.BackgroundColor3 = .(, , )
btn.Text =
btn.BackgroundColor3 = .(, , )
(order, langKey, stateKey, onToggle)
OptionBox = .()
OptionBox.Name = stateKey ..
OptionBox.LayoutOrder = order
OptionBox.Size = .(, , , )
OptionBox.BackgroundColor3 = .(, , )
OptionBox.BorderSizePixel =
OptionBox.BorderColor3 = .(, , )
OptionBox.Parent = Page1Scroll
Title = .()
Title.Size = .(, -, , )
Title.Position = .(, , , )
Title.BackgroundTransparency =
Title.Text = Translations[CurrentLang][langKey]
Title.TextColor3 = .(, , )
Title.Font = .Font.GothamSemibold
Title.TextSize =
Title.TextXAlignment = .TextXAlignment.Left
Title.Parent = OptionBox
OptionLabels[langKey] = Title
StatusBtn = .()
StatusBtn.Name =
StatusBtn.Size = .(, , , )
StatusBtn.Position = .(, -, , -)
StatusBtn.BackgroundColor3 = .(, , )
StatusBtn.BorderSizePixel =
StatusBtn.Text =
StatusBtn.TextColor3 = .(, , )
StatusBtn.Font = .Font.GothamBold
StatusBtn.TextSize =
StatusBtn.Parent = OptionBox
OptionButtons[stateKey] = StatusBtn
(StatusBtn.MouseButton1Click:(()
scriptDestroyed
nextVal = States[stateKey]
(stateKey, nextVal)
onToggle
(nextVal)
))
OptionBox
DistRow = .()
DistRow.Name =
DistRow.LayoutOrder =
DistRow.Size = .(, , , )
DistRow.BackgroundColor3 = .(, , )
DistRow.BorderSizePixel =
DistRow.BorderColor3 = .(, , )
DistRow.Parent = Page1Scroll
DistanceLabel = .()
DistanceLabel.Size = .(, , , )
DistanceLabel.Position = .(, , , )
DistanceLabel.BackgroundTransparency =
DistanceLabel.Text = Translations[CurrentLang].distPrefix
DistanceLabel.TextColor3 = .(, , )
DistanceLabel.Font = .Font.GothamBold
DistanceLabel.TextSize =
DistanceLabel.TextXAlignment = .TextXAlignment.Left
DistanceLabel.Parent = DistRow
DistanceInput = .()
DistanceInput.Name =
DistanceInput.Size = .(, , , )
DistanceInput.Position = .(, , , -)
DistanceInput.BackgroundColor3 = .(, , )
DistanceInput.BorderSizePixel =
DistanceInput.BorderColor3 = .(, , )
DistanceInput.Text = (HoldDistance) ..
DistanceInput.PlaceholderText =
DistanceInput.TextColor3 = .(, , )
DistanceInput.PlaceholderColor3 = .(, , )
DistanceInput.Font = .Font.GothamBold
DistanceInput.TextSize =
DistanceInput.ClearTextOnFocus =
DistanceInput.Parent = DistRow
MinusBtn = .()
MinusBtn.Size = .(, , , )
MinusBtn.Position = .(, -, , -)
MinusBtn.BackgroundColor3 = .(, , )
MinusBtn.BorderSizePixel =
MinusBtn.Text =
MinusBtn.TextColor3 = .(, , )
MinusBtn.Font = .Font.GothamBold
MinusBtn.TextSize =
MinusBtn.Parent = DistRow
PlusBtn = .()
PlusBtn.Size = .(, , , )
PlusBtn.Position = .(, -, , -)
PlusBtn.BackgroundColor3 = .(, , )
PlusBtn.BorderSizePixel =
PlusBtn.Text =
PlusBtn.TextColor3 = .(, , )
PlusBtn.Font = .Font.GothamBold
PlusBtn.TextSize =
PlusBtn.Parent = DistRow
(DistanceInput.FocusLost:(()
scriptDestroyed
cleaned = .(DistanceInput.Text , )
(cleaned)
()
))
(MinusBtn.MouseButton1Click:(()
scriptDestroyed
(HoldDistance - STEP_HOLD_DISTANCE)
))
(PlusBtn.MouseButton1Click:(()
scriptDestroyed
(HoldDistance + STEP_HOLD_DISTANCE)
))
(order, bgColor, borderColor, btnBgColor, leftSymbol, rightSymbol, onLeftClick, onRightClick)
RowBox = .()
RowBox.LayoutOrder = order
RowBox.Size = .(, , , )
RowBox.BackgroundColor3 = bgColor
RowBox.BorderSizePixel =
RowBox.BorderColor3 = borderColor
RowBox.Parent = Page1Scroll
Lbl = .()
Lbl.Size = .(, -, , )
Lbl.Position = .(, , , )
Lbl.BackgroundTransparency =
Lbl.Text =
Lbl.TextColor3 = .(, , )
Lbl.Font = .Font.GothamBold
Lbl.TextSize =
Lbl.TextXAlignment = .TextXAlignment.Left
Lbl.Parent = RowBox
LeftBtn = .()
LeftBtn.Size = .(, , , )
LeftBtn.Position = .(, -, , -)
LeftBtn.BackgroundColor3 = btnBgColor
LeftBtn.BorderSizePixel =
LeftBtn.Text = leftSymbol
LeftBtn.TextColor3 = .(, , )
LeftBtn.Font = .Font.GothamBold
LeftBtn.TextSize =
LeftBtn.Parent = RowBox
RightBtn = .()
RightBtn.Size = .(, , , )
RightBtn.Position = .(, -, , -)
RightBtn.BackgroundColor3 = btnBgColor
RightBtn.BorderSizePixel =
RightBtn.Text = rightSymbol
RightBtn.TextColor3 = .(, , )
RightBtn.Font = .Font.GothamBold
RightBtn.TextSize =
RightBtn.Parent = RowBox
(LeftBtn.MouseButton1Click:(()
scriptDestroyed
onLeftClick ()
))
(RightBtn.MouseButton1Click:(()
scriptDestroyed
onRightClick ()
))
Lbl, LeftBtn, RightBtn
DownHeightBtn, UpHeightBtn
HeightLabel, DownHeightBtn, UpHeightBtn = (
,
.(, , ),
.(, , ),
.(, , ),
,
,
()
HeightOffset = .(MIN_HEIGHT_OFFSET, HeightOffset - STEP_HEIGHT_OFFSET)
()
,
()
HeightOffset = .(MAX_HEIGHT_OFFSET, HeightOffset + STEP_HEIGHT_OFFSET)
()
)
RotLeftBtn, RotRightBtn
RotateLabel, RotLeftBtn, RotRightBtn = (
,
.(, , ),
.(, , ),
.(, , ),
,
,
()
ExtraYawDeg = (ExtraYawDeg - ROTATE_STEP_DEG) %
ExtraYawDeg > ExtraYawDeg -=
()
,
()
ExtraYawDeg = (ExtraYawDeg + ROTATE_STEP_DEG) %
ExtraYawDeg > ExtraYawDeg -=
()
)
()
()
()
Page2Frame = .()
Page2Frame.Name =
Page2Frame.Size = .(, -, , -)
Page2Frame.Position = .(, , , )
Page2Frame.BackgroundColor3 = .(, , )
Page2Frame.BorderSizePixel =
Page2Frame.BorderColor3 = .(, , )
Page2Frame.Visible =
Page2Frame.Parent = MainFrame
LangBar = .()
LangBar.Size = .(, -, , )
LangBar.Position = .(, , , )
LangBar.BackgroundColor3 = .(, , )
LangBar.BorderSizePixel =
LangBar.BorderColor3 = .(, , )
LangBar.Parent = Page2Frame
LangHeader = .()
LangHeader.Size = .(, -, , )
LangHeader.Position = .(, , , )
LangHeader.BackgroundTransparency =
LangHeader.Text = Translations[CurrentLang].langHeader
LangHeader.TextColor3 = .(, , )
LangHeader.Font = .Font.GothamSemibold
LangHeader.TextSize =
LangHeader.TextXAlignment = .TextXAlignment.Left
LangHeader.Parent = LangBar
BtnPL = .()
BtnPL.Size = .(, , , )
BtnPL.Position = .(, -, , -)
BtnPL.BackgroundColor3 = .(, , )
BtnPL.BorderSizePixel =
BtnPL.Text =
BtnPL.TextColor3 = .(, , )
BtnPL.Font = .Font.GothamBold
BtnPL.TextSize =
BtnPL.Parent = LangBar
BtnEN = .()
BtnEN.Size = .(, , , )
BtnEN.Position = .(, -, , -)
BtnEN.BackgroundColor3 = .(, , )
BtnEN.BorderSizePixel =
BtnEN.Text =
BtnEN.TextColor3 = .(, , )
BtnEN.Font = .Font.GothamBold
BtnEN.TextSize =
BtnEN.Parent = LangBar
NoteScroll = .()
NoteScroll.Name =
NoteScroll.Size = .(, -, , -)
NoteScroll.Position = .(, , , )
NoteScroll.BackgroundColor3 = .(, , )
NoteScroll.BorderSizePixel =
NoteScroll.BorderColor3 = .(, , )
NoteScroll.ScrollBarThickness =
NoteScroll.ScrollBarImageColor3 = .(, , )
NoteScroll.CanvasSize = .(, , , )
NoteScroll.AutomaticCanvasSize = .AutomaticSize.Y
NoteScroll.Parent = Page2Frame
NotePadding = .()
NotePadding.PaddingTop = .(, )
NotePadding.PaddingBottom = .(, )
NotePadding.PaddingLeft = .(, )
NotePadding.PaddingRight = .(, )
NotePadding.Parent = NoteScroll
NoteLabel = .()
NoteLabel.Size = .(, , , )
NoteLabel.AutomaticSize = .AutomaticSize.Y
NoteLabel.BackgroundTransparency =
NoteLabel.Text = Translations[CurrentLang].noteText
NoteLabel.TextColor3 = .(, , )
NoteLabel.Font = .Font.Gotham
NoteLabel.TextSize =
NoteLabel.TextWrapped =
NoteLabel.TextXAlignment = .TextXAlignment.Left
NoteLabel.TextYAlignment = .TextYAlignment.Top
NoteLabel.Parent = NoteScroll
(lang)
scriptDestroyed
CurrentLang = (lang == )
t = Translations[CurrentLang]
SubtitleLabel.Text = SecondPageOpen t.infoTitle t.subtitle
LangHeader.Text = t.langHeader
NoteLabel.Text = t.noteText
key, lbl (OptionLabels)
lbl.Text = t[key]
()
()
()
CurrentLang ==
BtnPL.BackgroundColor3 = .(, , )
BtnEN.BackgroundColor3 = .(, , )
BtnEN.BackgroundColor3 = .(, , )
BtnPL.BackgroundColor3 = .(, , )
(BtnPL.MouseButton1Click:(()
()
))
(BtnEN.MouseButton1Click:(()
()
))
(PageArrowBtn.MouseButton1Click:(()
scriptDestroyed
SecondPageOpen = SecondPageOpen
Page1Scroll.Visible = SecondPageOpen
Page2Frame.Visible = SecondPageOpen
MainFrame.Size = INFO_BOARD_SIZE
SecondPageOpen
PageArrowBtn.Text =
SubtitleLabel.Text = Translations[CurrentLang].infoTitle
PageArrowBtn.Text =
SubtitleLabel.Text = Translations[CurrentLang].subtitle
))
MAX_AIM_DISTANCE =
heldRootPart =
heldAssembly = {}
holdLocalOffset = .zero
lockedObjectRotation = .identity
pendingReleaseInput =
()
States.GrabBlock
(part)
_, plr (Players:())
plr.Character part:(plr.Character)
(part)
part.Name == part.Name ==
.Terrain part:(.Terrain)
(anchorCandidate)
anchorCandidate anchorCandidate:() anchorCandidate.Parent
anchorCandidate.Anchored (anchorCandidate) (anchorCandidate)
connected = anchorCandidate:()
assembly = {}
seen = {}
(p)
p p:() seen[p]
p.Anchored (p) (p)
seen[p] =
.(assembly, p)
(anchorCandidate)
_, p (connected)
(p)
_, p (assembly)
_, joint (p:())
joint:()
other = (joint.Part0 == p) joint.Part1 joint.Part0
other other:() other.Anchored
assembly
(assembly, preferredPart)
preferredPart preferredPart:() preferredPart.Parent
preferredPart.AssemblyRootPart preferredPart.AssemblyRootPart:() .(assembly, preferredPart.AssemblyRootPart)
preferredPart.AssemblyRootPart
preferredPart
best = assembly[]
bestVolume = -
_, p (assembly)
sz = p.Size
vol = sz.X * sz.Y * sz.Z
vol > bestVolume
bestVolume = vol
best = p
best
lastOwnershipClaim =
(assembly)
now = .()
(now - lastOwnershipClaim) <
lastOwnershipClaim = now
(()
(sethiddenproperty) ==
(LocalPlayer, , )
(LocalPlayer, , )
)
_, p (assembly {})
p p:() p.Parent p.Anchored
(()
(sethiddenproperty) ==
(p, , )
(p, , LocalPlayer)
)
()
_, p (heldAssembly {})
p p.Parent p.Anchored
(()
p.AssemblyLinearVelocity = .zero
p.AssemblyAngularVelocity = .zero
)
heldRootPart =
heldAssembly = {}
isHoldingObject =
pendingReleaseInput =
holdLocalOffset = .zero
lockedObjectRotation = .identity
()
camera = .CurrentCamera
camera , ,
char = LocalPlayer.Character
rayOrigin = camera.CFrame.Position
rayDirection = camera.CFrame.LookVector * MAX_AIM_DISTANCE
params = RaycastParams.()
params.FilterType = .RaycastFilterType.Exclude
filterList = {}
char
.(filterList, char)
_, p (heldAssembly {})
p p.Parent
.(filterList, p)
params.FilterDescendantsInstances = filterList
result = :(rayOrigin, rayDirection, params)
result result.Instance
assembly = (result.Instance)
assembly #assembly >
root = (assembly, result.Instance)
root, assembly, result.Position
, ,
(cameraCFrame)
desiredGrabPoint = cameraCFrame.Position
+ (cameraCFrame.LookVector * HoldDistance)
+ .(, HeightOffset, )
yawOnly = .(, (, cameraCFrame:()), )
userRot = .(.(ExtraPitchDeg), .(ExtraYawDeg), )
finalRot = yawOnly * userRot * lockedObjectRotation
.(desiredGrabPoint) * finalRot - (finalRot * holdLocalOffset)
(rootPart, assembly, hitPos, cameraCFrame)
rootPart assembly #assembly == hitPos cameraCFrame
heldRootPart = rootPart
heldAssembly = assembly
isHoldingObject =
pendingReleaseInput =
HeightOffset =
ExtraYawDeg =
ExtraPitchDeg =
()
()
holdLocalOffset = rootPart.CFrame:(hitPos)
lockedObjectRotation = rootPart.CFrame.Rotation
lastOwnershipClaim =
(assembly)
(UserInputService.InputBegan:((input, gameProcessed)
scriptDestroyed ()
gameProcessed
input.UserInputType == .UserInputType.MouseButton2
isHoldingObject
()
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
isHoldingObject
pendingReleaseInput =
camera = .CurrentCamera
rootPart, assembly, hitPos = ()
camera rootPart assembly hitPos
(rootPart, assembly, hitPos, camera.CFrame)
))
(UserInputService.InputEnded:((input)
scriptDestroyed
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
isHoldingObject pendingReleaseInput
()
))
(dt)
scriptDestroyed ()
camera = .CurrentCamera
camera
isHoldingObject
CrossH.BackgroundColor3 = .(, , )
CrossV.BackgroundColor3 = .(, , )
heldRootPart heldRootPart.Parent heldRootPart.Anchored
()
refreshedAssembly = (heldRootPart)
refreshedAssembly #refreshedAssembly >
heldAssembly = refreshedAssembly
(heldAssembly)
desiredCf = (camera.CFrame)
currentCf = heldRootPart.CFrame
safeDt = .(dt, / , )
posError = desiredCf.Position - currentCf.Position
linearVel = posError *
linearVel.Magnitude >
linearVel = linearVel.Unit *
rotDelta = desiredCf.Rotation * currentCf.Rotation:()
axis, angle = rotDelta:()
angle > .pi
angle -= * .pi
angVel = (axis.Magnitude > )
(axis.Unit * .((angle / safeDt) * , -, ))
.zero
(()
_, p (heldAssembly)
p p.Parent p.Anchored
p.AssemblyLinearVelocity = linearVel
p.AssemblyAngularVelocity = angVel
)
aimedRoot, aimedAssembly, aimedPos = ()
aimedRoot
CrossH.BackgroundColor3 = .(, , )
CrossV.BackgroundColor3 = .(, , )
(aimedRoot, aimedAssembly, aimedPos, camera.CFrame)
CrossH.BackgroundColor3 = .(, , )
CrossV.BackgroundColor3 = .(, , )
()
active = ()
CrosshairFrame.Visible = active
active
()
(, , , ()
()
)
(RunService.Heartbeat:((dt)
scriptDestroyed
(dt) ~= dt <= dt ~= dt
dt = /
()
CrosshairFrame.Visible =
(dt)
CrosshairFrame.Visible =
isHoldingObject heldRootPart
()
))
(LocalPlayer.CharacterAdded:(()
scriptDestroyed
()
))
()
scriptDestroyed
scriptDestroyed =
(, )
CrosshairFrame.Visible =
()
_, conn (globalConnections)
conn conn.Connected
conn:()
.(globalConnections)
StatsGui
statsRef = StatsGui
StatsGui =
statsRef.Parent
statsRef:()
ScreenGui
screenRef = ScreenGui
ScreenGui =
screenRef.Parent
screenRef:()
(ScreenGui.Destroying:(CleanupAllScriptResources))
(StatsGui.Destroying:(CleanupAllScriptResources))Attention: This script works in public servers. For better performance, make sure KM Studios Fly Mobile is enabled. By KM studios natural disaster survival

Universal