Run it
Copy the script and paste it into your executor.
.KM_FLY_MOBILE_LOADED
.KM_FLY_MOBILE_LOADED =
Players = :()
RunService = :()
CoreGui = :()
Stats = :()
TweenService = :()
UserInputService = :()
SoundService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
flying =
noclipActive =
flySpeed =
isMinimized =
isScriptsScreenOpen =
heroPoseActive =
wideCameraActive =
cameraFovValue =
flyCamShakeActive =
musicDeleted =
currentThemeName =
currentLanguage =
PANEL_WIDTH =
EXPANDED_HEIGHT =
MINIMIZED_HEIGHT =
SCRIPTS_WIDTH =
SCRIPTS_HEIGHT =
SCRIPTS_CANVAS_HEIGHT =
bodyVelocity, bodyGyro
mobileGui, mainPanel, panelStroke, contentHolder, minimizeBtn, studioBoxBtn, perfLabel
titleLabel, subTitle, speedLabel
flyToggleBtn, noclipToggleBtn, musicToggleBtn, nextTrackBtn, trackInfoLabel, speedBox
scriptsPanel, scriptsScrollFrame, backArrowBtn, scriptsTitle, heroPoseBtn, cameraFovBtn, camShakeBtn, deleteMusicBtn
sliderTitle, fovSliderFill, fovSliderKnob, fovValueLabel
themesHeader, languagesHeader, noteLabel
themeButtons = {}
languageButtons = {}
seasonalContainer
themeRegisteredItems = {}
seasonalEffectTokens = {}
savedMainSizeBeforeMin = .(, PANEL_WIDTH, , EXPANDED_HEIGHT)
savedMainPosBeforeMin =
controlModule =
(()
playerScripts = player:(, )
playerScripts
playerModule = (playerScripts:(, ))
controlModule = playerModule:()
)
TRANSLATIONS = {
[] = {
title = ,
subTitle = ,
flyOn = ,
flyOff = ,
noclipOn = ,
noclipOff = ,
musicOn = ,
musicOff = ,
trackPrefix = ,
trackIdLabel = ,
speedLabel = ,
scriptsTitle = ,
poseOn = ,
poseOff = ,
cam120 = ,
cam70 = ,
fovLabel = ,
shakeOn = ,
shakeOff = ,
deleteMusic = ,
musicDeleted = ,
themesHeader = ,
languagesHeader = ,
noteText = ,
},
[] = {
title = ,
subTitle = ,
flyOn = ,
flyOff = ,
noclipOn = ,
noclipOff = ,
musicOn = ,
musicOff = ,
trackPrefix = ,
trackIdLabel = ,
speedLabel = ,
scriptsTitle = ,
poseOn = ,
poseOff = ,
cam120 = ,
cam70 = ,
fovLabel = ,
shakeOn = ,
shakeOff = ,
deleteMusic = ,
musicDeleted = ,
themesHeader = ,
languagesHeader = ,
noteText = ,
},
[] = {
title = ,
subTitle = ,
flyOn = ,
flyOff = ,
noclipOn = ,
noclipOff = ,
musicOn = ,
musicOff = ,
trackPrefix = ,
trackIdLabel = ,
speedLabel = ,
scriptsTitle = ,
poseOn = ,
poseOff = ,
cam120 = ,
cam70 = ,
fovLabel = ,
shakeOn = ,
shakeOff = ,
deleteMusic = ,
musicDeleted = ,
themesHeader = ,
languagesHeader = ,
noteText = ,
},
}
()
TRANSLATIONS[currentLanguage] TRANSLATIONS[]
()
lang = ()
camShakeBtn camShakeBtn.Parent
camShakeBtn.Text = flyCamShakeActive lang.shakeOn lang.shakeOff
camShakeBtn.TextColor3 = flyCamShakeActive .(, , ) .(, , )
()
lang = ()
titleLabel titleLabel.Parent
titleLabel.Text = lang.title
subTitle subTitle.Parent
subTitle.Text = lang.subTitle
flyToggleBtn flyToggleBtn.Parent
flyToggleBtn.Text = flying lang.flyOn lang.flyOff
noclipToggleBtn noclipToggleBtn.Parent
noclipToggleBtn.Text = noclipActive lang.noclipOn lang.noclipOff
musicToggleBtn musicToggleBtn.Parent musicDeleted
musicToggleBtn.Text = musicEnabled lang.musicOn lang.musicOff
speedLabel speedLabel.Parent
speedLabel.Text = lang.speedLabel
scriptsTitle scriptsTitle.Parent
scriptsTitle.Text = lang.scriptsTitle
heroPoseBtn heroPoseBtn.Parent
heroPoseBtn.Text = heroPoseActive lang.poseOn lang.poseOff
cameraFovBtn cameraFovBtn.Parent
cameraFovBtn.Text = wideCameraActive lang.cam120 lang.cam70
sliderTitle sliderTitle.Parent
sliderTitle.Text = lang.fovLabel
()
deleteMusicBtn deleteMusicBtn.Parent
deleteMusicBtn.Text = musicDeleted lang.musicDeleted lang.deleteMusic
themesHeader themesHeader.Parent
themesHeader.Text = lang.themesHeader
languagesHeader languagesHeader.Parent
languagesHeader.Text = lang.languagesHeader
noteLabel noteLabel.Parent
noteLabel.Text = lang.noteText
()
trackInfoLabel trackInfoLabel.Parent musicDeleted
raw = playlist[currentTrackIndex]
idNum = .(raw, ) raw
lang = ()
trackInfoLabel.Text = .(, lang.trackPrefix, currentTrackIndex, #playlist, lang.trackIdLabel, idNum)
()
activeDef = THEMES[currentThemeName] THEMES[]
code, btn (languageButtons)
btn btn.Parent
isSelected = (code == currentLanguage)
btn.TextColor3 = isSelected .(, , ) activeDef.textColor
(langCode)
TRANSLATIONS[langCode]
currentLanguage = langCode
()
()
()
playlist = {
,
,
,
,
}
currentTrackIndex =
musicEnabled =
trackGeneration =
BASE_MUSIC_VOLUME =
MUFFLED_MUSIC_VOLUME =
muffledStateActive =
muffledSavedVolumes = {}
muffledEqualizers = {}
sound = .()
sound.Name =
sound.Volume = BASE_MUSIC_VOLUME
sound.Looped =
(snd)
snd == sound
MUFFLED_MUSIC_VOLUME
orig = muffledSavedVolumes[snd]
(orig) ==
.(orig * , , )
()
list = {}
seen = {}
(obj)
obj obj:() seen[obj]
seen[obj] =
isActive =
(()
isActive = obj.IsPlaying (obj == sound musicEnabled)
)
isActive
.(list, obj)
sound sound.Parent
(sound)
_, container ({ SoundService, CoreGui, })
(()
_, desc (container:())
desc:() desc.IsPlaying
(desc)
)
pg = player:()
pg
(()
_, desc (pg:())
desc:() desc.IsPlaying
(desc)
)
list
(enable)
musicDeleted
muffledStateActive = enable
enable
_, snd (())
(()
muffledSavedVolumes[snd] ==
muffledSavedVolumes[snd] = (snd == sound) BASE_MUSIC_VOLUME snd.Volume
eq = muffledEqualizers[snd]
eq eq.Parent
eq = snd:()
eq
eq = .()
eq.Name =
eq.LowGain =
eq.MidGain = -
eq.HighGain = -
eq.Enabled =
eq.Parent = snd
muffledEqualizers[snd] = eq
eq.LowGain =
eq.MidGain = -
eq.HighGain = -
eq.Enabled =
targetVol = (snd)
targetVol
TweenService:(
snd,
TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out),
{ Volume = targetVol }
):()
)
snd, eq (muffledEqualizers)
(()
eq eq.Parent
eq:()
)
muffledEqualizers[snd] =
snd, origVol (muffledSavedVolumes)
(()
snd snd.Parent
restoreVol = (snd == sound) BASE_MUSIC_VOLUME origVol
TweenService:(
snd,
TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out),
{ Volume = restoreVol }
):()
)
muffledSavedVolumes[snd] =
sound sound.Parent
(()
sound.Volume = BASE_MUSIC_VOLUME
)
()
musicDeleted sound
ok = (()
sound.Parent = CoreGui
)
ok sound.Parent
(()
sound.Parent = player:()
)
()
()
currentTrackIndex = currentTrackIndex +
currentTrackIndex > #playlist
currentTrackIndex =
lastTrackSwitchTick =
isSwitchingTrack =
(idx)
musicDeleted sound isSwitchingTrack
isSwitchingTrack =
lastTrackSwitchTick = ()
trackGeneration = trackGeneration +
myGen = trackGeneration
wrappedIdx = ((idx - ) % #playlist) +
currentTrackIndex = wrappedIdx
()
sound.Parent ==
()
nextAssetId = playlist[currentTrackIndex]
(()
sound.Looped =
sound:()
sound.SoundId =
sound.TimePosition =
sound.SoundId = nextAssetId
sound.Volume = muffledStateActive MUFFLED_MUSIC_VOLUME BASE_MUSIC_VOLUME
musicEnabled nextAssetId ~=
sound:()
)
.(, ()
trackGeneration == myGen sound musicDeleted
(()
musicEnabled sound.IsPlaying sound.SoundId == nextAssetId
sound.TimePosition =
sound:()
)
isSwitchingTrack =
)
muffledStateActive
.(()
()
)
()
musicDeleted musicEnabled isSwitchingTrack
(() - lastTrackSwitchTick) <
nextIdx = (currentTrackIndex % #playlist) +
(nextIdx)
sound.Ended:(()
musicDeleted musicEnabled
()
)
.(()
zeroLengthTicks =
lastId =
.()
musicDeleted
(()
musicEnabled sound isSwitchingTrack
zeroLengthTicks =
sound.SoundId ~= lastId
lastId = sound.SoundId
zeroLengthTicks =
sound.Parent ==
()
sound.IsPlaying sound.SoundId ~= (() - lastTrackSwitchTick) >
sound:()
muffledStateActive
()
length = sound.TimeLength
length >
zeroLengthTicks =
sound.TimePosition >= (length - )
()
sound.IsPlaying
zeroLengthTicks = zeroLengthTicks +
zeroLengthTicks >=
zeroLengthTicks =
()
)
)
(currentTrackIndex)
THEMES = {
[] = {
panelBg = .(, , ),
cardBg = .(, , ),
strokeColor = .(, , ),
titleColor = .(, , ),
subTitleColor = .(, , ),
textColor = .(, , ),
noteColor = .(, , ),
accentColor = .(, , ),
effectType = ,
},
[] = {
panelBg = .(, , ),
cardBg = .(, , ),
strokeColor = .(, , ),
titleColor = .(, , ),
subTitleColor = .(, , ),
textColor = .(, , ),
noteColor = .(, , ),
accentColor = .(, , ),
effectType = ,
},
[] = {
panelBg = .(, , ),
cardBg = .(, , ),
strokeColor = .(, , ),
titleColor = .(, , ),
subTitleColor = .(, , ),
textColor = .(, , ),
noteColor = .(, , ),
accentColor = .(, , ),
effectType = ,
},
[] = {
panelBg = .(, , ),
cardBg = .(, , ),
strokeColor = .(, , ),
titleColor = .(, , ),
subTitleColor = .(, , ),
textColor = .(, , ),
noteColor = .(, , ),
accentColor = .(, , ),
effectType = ,
},
}
()
key (seasonalEffectTokens)
seasonalEffectTokens[key] = (seasonalEffectTokens[key] ) +
seasonalContainer seasonalContainer.Parent
_, child (seasonalContainer:())
(() child:() )
(effectType)
()
effectType seasonalContainer seasonalContainer.Parent
particleGlyphs = {}
particleColors = {}
effectType ==
particleGlyphs = { , }
particleColors = { .(, , ), .(, , ), .(, , ) }
effectType ==
particleGlyphs = { , }
particleColors = { .(, , ), .(, , ) }
effectType ==
particleGlyphs = { , }
particleColors = { .(, , ), .(, , ) }
i = ,
token = (seasonalEffectTokens[i] ) +
seasonalEffectTokens[i] = token
.(()
seasonalContainer seasonalContainer.Parent seasonalEffectTokens[i] == token
pLabel = .()
pLabel.BackgroundTransparency =
pLabel.Font = .Font.GothamBold
pLabel.Text = particleGlyphs[((i - ) % #particleGlyphs) + ]
pLabel.TextColor3 = particleColors[((i - ) % #particleColors) + ]
pLabel.TextSize = (effectType == )
pLabel.TextTransparency =
pLabel.Size = .(, , , )
startX = .( + ((i - ) * ) + (.(-, ) * ), , )
pLabel.Position = .(startX, , -, )
pLabel.ZIndex =
pLabel.Parent = seasonalContainer
driftX = .(startX + (.(-, ) * ), , )
fallTime = .(, ) /
moveTween = TweenService:(
pLabel,
TweenInfo.(fallTime, .EasingStyle.Sine, .EasingDirection.InOut),
{
Position = .(driftX, , , ),
TextTransparency = ,
Rotation = .(-, )
}
)
moveTween:()
.(fallTime + .(, ) / )
(() pLabel:() )
)
(obj, role)
.(themeRegisteredItems, { obj = obj, role = role })
()
activeDef = THEMES[currentThemeName] THEMES[]
name, btn (themeButtons)
btn btn.Parent
isSelected = (name == currentThemeName)
btn.TextColor3 = isSelected .(, , ) activeDef.textColor
(themeName, instant)
def = THEMES[themeName]
def
currentThemeName = themeName
tweenInfo = instant TweenInfo.() TweenInfo.(, .EasingStyle.Quint, .EasingDirection.Out)
_, item (themeRegisteredItems)
obj = item.obj
role = item.role
obj obj.Parent
(()
role ==
TweenService:(obj, tweenInfo, { BackgroundColor3 = def.panelBg }):()
role ==
TweenService:(obj, tweenInfo, { BackgroundColor3 = def.cardBg }):()
role ==
TweenService:(obj, tweenInfo, { Color = def.strokeColor }):()
role ==
TweenService:(obj, tweenInfo, { TextColor3 = def.titleColor }):()
role ==
TweenService:(obj, tweenInfo, { TextColor3 = def.subTitleColor }):()
role ==
TweenService:(obj, tweenInfo, { TextColor3 = def.textColor }):()
role ==
TweenService:(obj, tweenInfo, { TextColor3 = def.noteColor }):()
)
()
()
(def.effectType)
savedRightShoulderC0 =
currentArmBlend =
(char)
char ,
r15Arm = char:()
r15Arm
motor = r15Arm:()
motor motor:()
motor,
torso = char:()
torso
r6Motor = torso:()
r6Motor r6Motor:()
r6Motor,
,
()
lang = ()
heroPoseBtn heroPoseBtn.Parent
heroPoseBtn.Text = heroPoseActive lang.poseOn lang.poseOff
heroPoseBtn.TextColor3 = heroPoseActive .(, , ) .(, , )
(enabled)
heroPoseActive = enabled
()
(val)
clamped = .(.(val), , )
ratio = (clamped - ) / ( - )
lang = ()
fovSliderFill fovSliderFill.Parent
fovSliderFill.Size = .(ratio, , , )
fovSliderKnob fovSliderKnob.Parent
fovSliderKnob.Position = .(ratio, -, , -)
fovValueLabel fovValueLabel.Parent
fovValueLabel.Text = (clamped)
cameraFovBtn cameraFovBtn.Parent
cameraFovBtn.Text = wideCameraActive lang.cam120 lang.cam70
cameraFovBtn.TextColor3 = wideCameraActive .(, , ) .(, , )
(targetFov, smooth)
clamped = .(targetFov, , )
cameraFovValue = clamped
wideCameraActive = (.(clamped) >= )
(clamped)
activeCam = .CurrentCamera camera
activeCam
(()
smooth
TweenService:(
activeCam,
TweenInfo.(, .EasingStyle.Quint, .EasingDirection.Out),
{ FieldOfView = clamped }
):()
activeCam.FieldOfView = clamped
)
(wide)
wideCameraActive = wide
(wide , )
()
musicDeleted
musicDeleted =
musicEnabled =
()
(()
sound
sound:()
sound:()
sound =
)
musicToggleBtn musicToggleBtn.Parent
(() musicToggleBtn:() )
musicToggleBtn =
nextTrackBtn nextTrackBtn.Parent
(() nextTrackBtn:() )
nextTrackBtn =
trackInfoLabel trackInfoLabel.Parent
(() trackInfoLabel:() )
trackInfoLabel =
deleteMusicBtn deleteMusicBtn.Parent
lang = ()
deleteMusicBtn.Text = lang.musicDeleted
deleteMusicBtn.TextColor3 = .(, , )
fpsFrames =
fpsAccumulator =
currentFps =
currentPing =
RunService.RenderStepped:((dt)
fpsFrames = fpsFrames +
fpsAccumulator = fpsAccumulator + dt
fpsAccumulator >=
currentFps = .(.(fpsFrames / fpsAccumulator), , )
fpsFrames =
fpsAccumulator =
(()
netItem = Stats.Network Stats.Network.ServerStatsItem Stats.Network.ServerStatsItem[]
netItem
currentPing = .(.(netItem:()), , )
)
perfLabel perfLabel.Parent
perfLabel.Text = .(, currentFps, currentPing)
)
strokePulseToken =
GREEN_STROKE = .(, , )
RED_STROKE = .(, , )
(isOn)
panelStroke panelStroke.Parent
strokePulseToken = strokePulseToken +
myToken = strokePulseToken
activeDef = THEMES[currentThemeName] THEMES[]
baseStroke = activeDef.strokeColor
accentColor = isOn GREEN_STROKE RED_STROKE
dimAccent = isOn .(, , ) .(, , )
.(()
(()
panelStroke.Color = accentColor
strokePulseToken ~= myToken
t1 = TweenService:(panelStroke, TweenInfo.(, .EasingStyle.Sine, .EasingDirection.InOut), { Color = dimAccent })
t1:()
t1.Completed:()
strokePulseToken ~= myToken
t2 = TweenService:(panelStroke, TweenInfo.(, .EasingStyle.Sine, .EasingDirection.InOut), { Color = accentColor })
t2:()
t2.Completed:()
strokePulseToken ~= myToken
t3 = TweenService:(panelStroke, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), { Color = baseStroke })
t3:()
)
)
slideToken =
(instant)
mainPanel contentHolder minimizeBtn
slideToken = slideToken +
myToken = slideToken
minimizeBtn.Text = isMinimized
isMinimized
savedMainSizeBeforeMin = .(, PANEL_WIDTH, , EXPANDED_HEIGHT)
savedMainPosBeforeMin = mainPanel.Position
minSize = .(, PANEL_WIDTH, , MINIMIZED_HEIGHT)
minPos = .(
savedMainPosBeforeMin.X.Scale,
savedMainPosBeforeMin.X.Offset,
savedMainPosBeforeMin.Y.Scale,
savedMainPosBeforeMin.Y.Offset +
)
instant
contentHolder.Visible =
contentHolder.Position = .(, , , -)
mainPanel.Size = minSize
mainPanel.Position = minPos
sizeTween = TweenService:(
mainPanel,
TweenInfo.(, .EasingStyle.Quint, .EasingDirection.InOut),
{ Size = minSize, Position = minPos }
)
contentTween = TweenService:(
contentHolder,
TweenInfo.(, .EasingStyle.Quad, .EasingDirection.In),
{ Position = .(, , , -) }
)
sizeTween:()
contentTween:()
contentTween.Completed:(()
slideToken == myToken isMinimized contentHolder
contentHolder.Visible =
)
restoreSize = savedMainSizeBeforeMin .(, PANEL_WIDTH, , EXPANDED_HEIGHT)
restorePos = savedMainPosBeforeMin mainPanel.Position
instant
contentHolder.Visible =
contentHolder.Position = .(, , , )
mainPanel.Size = restoreSize
mainPanel.Position = restorePos
contentHolder.Visible =
contentHolder.Position = .(, , , -)
sizeTween = TweenService:(
mainPanel,
TweenInfo.(, .EasingStyle.Back, .EasingDirection.Out),
{ Size = restoreSize, Position = restorePos }
)
contentTween = TweenService:(
contentHolder,
TweenInfo.(, .EasingStyle.Quint, .EasingDirection.Out),
{ Position = .(, , , ) }
)
sizeTween:()
contentTween:()
screenSwitchToken =
(openScripts, instant)
mainPanel scriptsPanel
isScriptsScreenOpen = openScripts
(openScripts)
screenSwitchToken = screenSwitchToken +
myToken = screenSwitchToken
mainCenterPos = savedMainPosBeforeMin .(, -PANEL_WIDTH / , , -EXPANDED_HEIGHT / )
mainDipDownPos = .(
mainCenterPos.X.Scale,
mainCenterPos.X.Offset,
mainCenterPos.Y.Scale,
mainCenterPos.Y.Offset +
)
mainOffTopPos = .(, -PANEL_WIDTH / , , -EXPANDED_HEIGHT - )
scriptsCenterPos = .(, -SCRIPTS_WIDTH / , , -SCRIPTS_HEIGHT / )
scriptsOffBottomPos = .(, -SCRIPTS_WIDTH / , , )
instant
openScripts
mainPanel.Visible =
mainPanel.Position = mainOffTopPos
scriptsPanel.Visible =
scriptsPanel.Position = scriptsCenterPos
scriptsPanel.Visible =
scriptsPanel.Position = scriptsOffBottomPos
mainPanel.Visible =
mainPanel.Position = mainCenterPos
openScripts
scriptsPanel.Visible =
scriptsPanel.Position = scriptsOffBottomPos
mainPanel.Visible =
inTween = TweenService:(
scriptsPanel,
TweenInfo.(, .EasingStyle.Quint, .EasingDirection.Out),
{ Position = scriptsCenterPos }
)
inTween:()
.(()
dipTween = TweenService:(
mainPanel,
TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out),
{ Position = mainDipDownPos }
)
dipTween:()
dipTween.Completed:()
screenSwitchToken ~= myToken isScriptsScreenOpen mainPanel
riseTween = TweenService:(
mainPanel,
TweenInfo.(, .EasingStyle.Sine, .EasingDirection.InOut),
{ Position = mainOffTopPos }
)
riseTween:()
riseTween.Completed:(()
screenSwitchToken == myToken isScriptsScreenOpen mainPanel
mainPanel.Visible =
)
)
mainPanel.Visible =
mainPanel.Position = mainOffTopPos
scriptsPanel.Visible =
outTween = TweenService:(
scriptsPanel,
TweenInfo.(, .EasingStyle.Quint, .EasingDirection.InOut),
{ Position = scriptsOffBottomPos }
)
inTween = TweenService:(
mainPanel,
TweenInfo.(, .EasingStyle.Quint, .EasingDirection.Out),
{ Position = mainCenterPos }
)
outTween:()
inTween:()
outTween.Completed:(()
screenSwitchToken == myToken ( isScriptsScreenOpen) scriptsPanel
scriptsPanel.Visible =
)
(textObj, normalColor, dimmedColor)
dimId =
textObj.MouseButton1Click:(()
dimId = dimId +
currentId = dimId
dimTween = TweenService:(
textObj,
TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out),
{ TextColor3 = dimmedColor }
)
dimTween:()
dimTween.Completed:()
dimId ~= currentId
restoreTween = TweenService:(
textObj,
TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out),
{ TextColor3 = normalColor }
)
restoreTween:()
)
()
themeRegisteredItems = {}
themeButtons = {}
languageButtons = {}
()
mobileGui
(() mobileGui:() )
mobileGui = .()
mobileGui.Name =
mobileGui.ResetOnSpawn =
mobileGui.ZIndexBehavior = .ZIndexBehavior.Sibling
success = (()
mobileGui.Parent = CoreGui
)
success
(()
mobileGui.Parent = player:()
)
initialPos = savedMainPosBeforeMin .(, -, , -)
savedMainPosBeforeMin = initialPos
mainPanel = .()
mainPanel.Name =
mainPanel.Size = .(, PANEL_WIDTH, , EXPANDED_HEIGHT)
mainPanel.Position = initialPos
mainPanel.BackgroundColor3 = .(, , )
mainPanel.BackgroundTransparency =
mainPanel.Active =
mainPanel.Draggable =
mainPanel.ClipsDescendants =
mainPanel.Parent = mobileGui
(mainPanel, )
mainPanel:():(()
isMinimized isScriptsScreenOpen mainPanel.Visible
savedMainPosBeforeMin = mainPanel.Position
)
uiCorner = .()
uiCorner.CornerRadius = .(, )
uiCorner.Parent = mainPanel
panelStroke = .()
panelStroke.Color = .(, , )
panelStroke.Thickness =
panelStroke.Transparency =
panelStroke.Parent = mainPanel
(panelStroke, )
seasonalContainer = .()
seasonalContainer.Name =
seasonalContainer.Size = .(, , , )
seasonalContainer.Position = .(, , , )
seasonalContainer.BackgroundTransparency =
seasonalContainer.ClipsDescendants =
seasonalContainer.ZIndex =
seasonalContainer.Parent = mainPanel
titleLabel = .()
titleLabel.Size = .(, , , )
titleLabel.Position = .(, , , )
titleLabel.BackgroundTransparency =
titleLabel.Font = .Font.GothamBold
titleLabel.Text =
titleLabel.TextColor3 = .(, , )
titleLabel.TextSize =
titleLabel.TextXAlignment = .TextXAlignment.Left
titleLabel.ZIndex =
titleLabel.Parent = mainPanel
(titleLabel, )
subTitle = .()
subTitle.Size = .(, , , )
subTitle.Position = .(, , , )
subTitle.BackgroundTransparency =
subTitle.Font = .Font.Gotham
subTitle.Text =
subTitle.TextColor3 = .(, , )
subTitle.TextSize =
subTitle.TextXAlignment = .TextXAlignment.Left
subTitle.ZIndex =
subTitle.Parent = mainPanel
(subTitle, )
studioBoxBtn = .()
studioBoxBtn.Name =
studioBoxBtn.Size = .(, , , )
studioBoxBtn.Position = .(, , , )
studioBoxBtn.BackgroundColor3 = .(, , )
studioBoxBtn.Font = .Font.GothamBold
studioBoxBtn.Text =
studioBoxBtn.TextColor3 = .(, , )
studioBoxBtn.TextSize =
studioBoxBtn.ZIndex =
studioBoxBtn.Parent = mainPanel
.(, studioBoxBtn).CornerRadius = .(, )
(studioBoxBtn, )
(studioBoxBtn, )
studioBoxStroke = .()
studioBoxStroke.Color = .(, , )
studioBoxStroke.Thickness =
studioBoxStroke.Transparency =
studioBoxStroke.Parent = studioBoxBtn
(studioBoxStroke, )
studioBoxBtn.MouseButton1Click:(()
(, )
)
perfLabel = .()
perfLabel.Size = .(, , , )
perfLabel.Position = .(, -, , )
perfLabel.BackgroundTransparency =
perfLabel.Font = .Font.GothamBold
perfLabel.Text = .(, currentFps, currentPing)
perfLabel.TextColor3 = .(, , )
perfLabel.TextSize =
perfLabel.TextXAlignment = .TextXAlignment.Right
perfLabel.ZIndex =
perfLabel.Parent = mainPanel
(perfLabel, )
minimizeBtn = .()
minimizeBtn.Size = .(, , , )
minimizeBtn.Position = .(, -, , )
minimizeBtn.BackgroundColor3 = .(, , )
minimizeBtn.Font = .Font.GothamBold
minimizeBtn.Text =
minimizeBtn.TextColor3 = .(, , )
minimizeBtn.TextSize =
minimizeBtn.ZIndex =
minimizeBtn.Parent = mainPanel
.(, minimizeBtn).CornerRadius = .(, )
(minimizeBtn, )
(minimizeBtn, )
minimizeBtn.MouseButton1Click:(()
isMinimized = isMinimized
()
)
contentHolder = .()
contentHolder.Name =
contentHolder.Size = .(, , , EXPANDED_HEIGHT - )
contentHolder.Position = .(, , , )
contentHolder.BackgroundTransparency =
contentHolder.ZIndex =
contentHolder.Parent = mainPanel
flyToggleBtn = .()
flyToggleBtn.Size = .(, -, , )
flyToggleBtn.Position = .(, , , )
flyToggleBtn.BackgroundColor3 = .(, , )
flyToggleBtn.Font = .Font.GothamBold
flyToggleBtn.Text = flying
flyToggleBtn.TextColor3 = flying .(, , ) .(, , )
flyToggleBtn.TextSize =
flyToggleBtn.ZIndex =
flyToggleBtn.Parent = contentHolder
.(, flyToggleBtn).CornerRadius = .(, )
(flyToggleBtn, )
noclipToggleBtn = .()
noclipToggleBtn.Size = .(, -, , )
noclipToggleBtn.Position = .(, , , )
noclipToggleBtn.BackgroundColor3 = .(, , )
noclipToggleBtn.Font = .Font.GothamBold
noclipToggleBtn.Text = noclipActive
noclipToggleBtn.TextColor3 = noclipActive .(, , ) .(, , )
noclipToggleBtn.TextSize =
noclipToggleBtn.ZIndex =
noclipToggleBtn.Parent = contentHolder
.(, noclipToggleBtn).CornerRadius = .(, )
(noclipToggleBtn, )
musicDeleted
musicToggleBtn = .()
musicToggleBtn.Size = .(, -, , )
musicToggleBtn.Position = .(, , , )
musicToggleBtn.BackgroundColor3 = .(, , )
musicToggleBtn.Font = .Font.GothamBold
musicToggleBtn.Text = musicEnabled
musicToggleBtn.TextColor3 = musicEnabled .(, , ) .(, , )
musicToggleBtn.TextSize =
musicToggleBtn.ZIndex =
musicToggleBtn.Parent = contentHolder
.(, musicToggleBtn).CornerRadius = .(, )
(musicToggleBtn, )
nextTrackBtn = .()
nextTrackBtn.Size = .(, , , )
nextTrackBtn.Position = .(, -, , )
nextTrackBtn.BackgroundColor3 = .(, , )
nextTrackBtn.Font = .Font.GothamBold
nextTrackBtn.Text =
nextTrackBtn.TextColor3 = .(, , )
nextTrackBtn.TextSize =
nextTrackBtn.ZIndex =
nextTrackBtn.Parent = contentHolder
.(, nextTrackBtn).CornerRadius = .(, )
(nextTrackBtn, )
(nextTrackBtn, )
trackInfoLabel = .()
trackInfoLabel.Name =
trackInfoLabel.Size = .(, -, , )
trackInfoLabel.Position = .(, , , )
trackInfoLabel.BackgroundTransparency =
trackInfoLabel.Font = .Font.GothamBold
trackInfoLabel.Text = .(, currentTrackIndex, #playlist, .(playlist[currentTrackIndex] , ) )
trackInfoLabel.TextColor3 = .(, , )
trackInfoLabel.TextSize =
trackInfoLabel.TextXAlignment = .TextXAlignment.Center
trackInfoLabel.ZIndex =
trackInfoLabel.Parent = contentHolder
(trackInfoLabel, )
musicToggleBtn.MouseButton1Click:(()
musicDeleted sound
lang = ()
musicEnabled
musicEnabled =
(() sound:() )
musicToggleBtn.Text = lang.musicOff
musicToggleBtn.TextColor3 = .(, , )
musicEnabled =
musicToggleBtn.Text = lang.musicOn
musicToggleBtn.TextColor3 = .(, , )
sound.SoundId == playlist[currentTrackIndex] sound.TimePosition >
(() sound:() )
(currentTrackIndex)
muffledStateActive
.(()
()
)
)
nextTrackBtn.MouseButton1Click:(()
musicDeleted
lang = ()
nextIdx = (currentTrackIndex % #playlist) +
musicEnabled =
musicToggleBtn.Text = lang.musicOn
musicToggleBtn.TextColor3 = .(, , )
(nextIdx)
)
speedRow = .()
speedRow.Size = .(, -, , )
speedRow.Position = .(, , , )
speedRow.BackgroundColor3 = .(, , )
speedRow.ZIndex =
speedRow.Parent = contentHolder
.(, speedRow).CornerRadius = .(, )
(speedRow, )
speedLabel = .()
speedLabel.Size = .(, , , )
speedLabel.Position = .(, , , )
speedLabel.BackgroundTransparency =
speedLabel.Font = .Font.GothamBold
speedLabel.Text =
speedLabel.TextColor3 = .(, , )
speedLabel.TextSize =
speedLabel.TextXAlignment = .TextXAlignment.Left
speedLabel.ZIndex =
speedLabel.Parent = speedRow
(speedLabel, )
speedBox = .()
speedBox.Size = .(, , , )
speedBox.Position = .(, , , )
speedBox.BackgroundTransparency =
speedBox.Font = .Font.GothamBold
speedBox.Text = (flySpeed)
speedBox.TextColor3 = .(, , )
speedBox.TextSize =
speedBox.TextXAlignment = .TextXAlignment.Right
speedBox.ZIndex =
speedBox.Parent = speedRow
(speedBox, )
speedBox.FocusLost:(()
val = (speedBox.Text)
val
flySpeed = .(val, , )
speedBox.Text = (flySpeed)
speedBox.Text = (flySpeed)
)
scriptsPanel = .()
scriptsPanel.Name =
scriptsPanel.Size = .(, SCRIPTS_WIDTH, , SCRIPTS_HEIGHT)
scriptsPanel.Position = .(, -SCRIPTS_WIDTH / , , )
scriptsPanel.BackgroundColor3 = .(, , )
scriptsPanel.BackgroundTransparency =
scriptsPanel.Active =
scriptsPanel.Draggable =
scriptsPanel.ClipsDescendants =
scriptsPanel.Visible =
scriptsPanel.ZIndex =
scriptsPanel.Parent = mobileGui
(scriptsPanel, )
.(, scriptsPanel).CornerRadius = .(, )
scriptsStroke = .()
scriptsStroke.Color = .(, , )
scriptsStroke.Thickness =
scriptsStroke.Transparency =
scriptsStroke.Parent = scriptsPanel
(scriptsStroke, )
scriptsHeaderBar = .()
scriptsHeaderBar.Name =
scriptsHeaderBar.Size = .(, , , )
scriptsHeaderBar.Position = .(, , , )
scriptsHeaderBar.BackgroundTransparency =
scriptsHeaderBar.ZIndex =
scriptsHeaderBar.Parent = scriptsPanel
scriptsTitle = .()
scriptsTitle.Size = .(, -, , )
scriptsTitle.Position = .(, , , )
scriptsTitle.BackgroundTransparency =
scriptsTitle.Active =
scriptsTitle.AutoButtonColor =
scriptsTitle.Font = .Font.GothamBold
scriptsTitle.Text =
scriptsTitle.TextColor3 = .(, , )
scriptsTitle.TextSize =
scriptsTitle.TextWrapped =
scriptsTitle.TextXAlignment = .TextXAlignment.Left
scriptsTitle.TextYAlignment = .TextYAlignment.Center
scriptsTitle.ZIndex =
scriptsTitle.Parent = scriptsHeaderBar
(scriptsTitle, )
(
scriptsTitle,
.(, , ),
.(, , )
)
backArrowBtn = .()
backArrowBtn.Name =
backArrowBtn.Size = .(, , , )
backArrowBtn.Position = .(, -, , )
backArrowBtn.BackgroundColor3 = .(, , )
backArrowBtn.Font = .Font.GothamBold
backArrowBtn.Text =
backArrowBtn.TextColor3 = .(, , )
backArrowBtn.TextSize =
backArrowBtn.ZIndex =
backArrowBtn.Parent = scriptsHeaderBar
.(, backArrowBtn).CornerRadius = .(, )
(backArrowBtn, )
(backArrowBtn, )
backArrowBtn.MouseButton1Click:(()
(, )
)
scriptsScrollFrame = .()
scriptsScrollFrame.Name =
scriptsScrollFrame.Size = .(, -, , -)
scriptsScrollFrame.Position = .(, , , )
scriptsScrollFrame.BackgroundTransparency =
scriptsScrollFrame.BorderSizePixel =
scriptsScrollFrame.ScrollBarThickness =
scriptsScrollFrame.ScrollBarImageColor3 = .(, , )
scriptsScrollFrame.ScrollingDirection = .ScrollingDirection.Y
scriptsScrollFrame.ElasticBehavior = .ElasticBehavior.Always
scriptsScrollFrame.CanvasSize = .(, , , SCRIPTS_CANVAS_HEIGHT)
scriptsScrollFrame.ZIndex =
scriptsScrollFrame.Parent = scriptsPanel
heroPoseBtn = .()
heroPoseBtn.Name =
heroPoseBtn.Size = .(, -, , )
heroPoseBtn.Position = .(, , , )
heroPoseBtn.BackgroundColor3 = .(, , )
heroPoseBtn.Font = .Font.GothamBold
heroPoseBtn.Text = heroPoseActive
heroPoseBtn.TextColor3 = heroPoseActive .(, , ) .(, , )
heroPoseBtn.TextSize =
heroPoseBtn.ZIndex =
heroPoseBtn.Parent = scriptsScrollFrame
.(, heroPoseBtn).CornerRadius = .(, )
(heroPoseBtn, )
heroPoseBtn.MouseButton1Click:(()
( heroPoseActive)
)
cameraFovBtn = .()
cameraFovBtn.Name =
cameraFovBtn.Size = .(, -, , )
cameraFovBtn.Position = .(, , , )
cameraFovBtn.BackgroundColor3 = .(, , )
cameraFovBtn.Font = .Font.GothamBold
cameraFovBtn.Text = wideCameraActive
cameraFovBtn.TextColor3 = wideCameraActive .(, , ) .(, , )
cameraFovBtn.TextSize =
cameraFovBtn.ZIndex =
cameraFovBtn.Parent = scriptsScrollFrame
.(, cameraFovBtn).CornerRadius = .(, )
(cameraFovBtn, )
cameraFovBtn.MouseButton1Click:(()
( wideCameraActive)
)
sliderCard = .()
sliderCard.Name =
sliderCard.Size = .(, -, , )
sliderCard.Position = .(, , , )
sliderCard.BackgroundColor3 = .(, , )
sliderCard.ZIndex =
sliderCard.Parent = scriptsScrollFrame
.(, sliderCard).CornerRadius = .(, )
(sliderCard, )
sliderTitle = .()
sliderTitle.Size = .(, , , )
sliderTitle.Position = .(, , , )
sliderTitle.BackgroundTransparency =
sliderTitle.Font = .Font.GothamBold
sliderTitle.Text =
sliderTitle.TextColor3 = .(, , )
sliderTitle.TextSize =
sliderTitle.TextXAlignment = .TextXAlignment.Left
sliderTitle.ZIndex =
sliderTitle.Parent = sliderCard
(sliderTitle, )
fovValueLabel = .()
fovValueLabel.Size = .(, , , )
fovValueLabel.Position = .(, -, , )
fovValueLabel.BackgroundTransparency =
fovValueLabel.Font = .Font.GothamBold
fovValueLabel.Text = (.(cameraFovValue))
fovValueLabel.TextColor3 = .(, , )
fovValueLabel.TextSize =
fovValueLabel.TextXAlignment = .TextXAlignment.Right
fovValueLabel.ZIndex =
fovValueLabel.Parent = sliderCard
(fovValueLabel, )
sliderTrack = .()
sliderTrack.Name =
sliderTrack.Size = .(, -, , )
sliderTrack.Position = .(, , , -)
sliderTrack.BackgroundColor3 = .(, , )
sliderTrack.Text =
sliderTrack.AutoButtonColor =
sliderTrack.ZIndex =
sliderTrack.Parent = sliderCard
.(, sliderTrack).CornerRadius = .(, )
fovSliderFill = .()
fovSliderFill.Size = .(, , , )
fovSliderFill.Position = .(, , , )
fovSliderFill.BackgroundColor3 = .(, , )
fovSliderFill.BorderSizePixel =
fovSliderFill.ZIndex =
fovSliderFill.Parent = sliderTrack
.(, fovSliderFill).CornerRadius = .(, )
fovSliderKnob = .()
fovSliderKnob.Name =
fovSliderKnob.Size = .(, , , )
fovSliderKnob.Position = .(, -, , -)
fovSliderKnob.BackgroundColor3 = .(, , )
fovSliderKnob.Text =
fovSliderKnob.AutoButtonColor =
fovSliderKnob.ZIndex =
fovSliderKnob.Parent = sliderTrack
.(, fovSliderKnob).CornerRadius = .(, )
draggingSlider =
(screenX)
absPos = sliderTrack.AbsolutePosition.X
absSize = sliderTrack.AbsoluteSize.X
absSize <=
alpha = .((screenX - absPos) / absSize, , )
( + alpha * ( - ), )
sliderTrack.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
draggingSlider =
(input.Position.X)
)
fovSliderKnob.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
draggingSlider =
)
UserInputService.InputChanged:((input)
draggingSlider (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
(input.Position.X)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
draggingSlider =
)
camShakeBtn = .()
camShakeBtn.Name =
camShakeBtn.Size = .(, -, , )
camShakeBtn.Position = .(, , , )
camShakeBtn.BackgroundColor3 = .(, , )
camShakeBtn.Font = .Font.GothamBold
camShakeBtn.Text =
camShakeBtn.TextColor3 = .(, , )
camShakeBtn.TextSize =
camShakeBtn.ZIndex =
camShakeBtn.Parent = scriptsScrollFrame
.(, camShakeBtn).CornerRadius = .(, )
(camShakeBtn, )
camShakeBtn.MouseButton1Click:(()
flyCamShakeActive = flyCamShakeActive
()
)
deleteMusicBtn = .()
deleteMusicBtn.Name =
deleteMusicBtn.Size = .(, -, , )
deleteMusicBtn.Position = .(, , , )
deleteMusicBtn.BackgroundColor3 = .(, , )
deleteMusicBtn.Font = .Font.GothamBold
deleteMusicBtn.Text = musicDeleted
deleteMusicBtn.TextColor3 = musicDeleted .(, , ) .(, , )
deleteMusicBtn.TextSize =
deleteMusicBtn.ZIndex =
deleteMusicBtn.Parent = scriptsScrollFrame
.(, deleteMusicBtn).CornerRadius = .(, )
(deleteMusicBtn, )
deleteMusicBtn.MouseButton1Click:(()
()
)
themesHeader = .()
themesHeader.Size = .(, -, , )
themesHeader.Position = .(, , , )
themesHeader.BackgroundTransparency =
themesHeader.Font = .Font.GothamBold
themesHeader.Text =
themesHeader.TextColor3 = .(, , )
themesHeader.TextSize =
themesHeader.TextXAlignment = .TextXAlignment.Left
themesHeader.ZIndex =
themesHeader.Parent = scriptsScrollFrame
(themesHeader, )
themeLayout = {
{ name = , x = , y = , w = , ox = , ow = - },
{ name = , x = , y = , w = , ox = , ow = - },
{ name = , x = , y = , w = , ox = , ow = - },
{ name = , x = , y = , w = , ox = , ow = - },
}
_, tInfo (themeLayout)
tBtn = .()
tBtn.Name = .. tInfo.name
tBtn.Size = .(tInfo.w, tInfo.ow, , )
tBtn.Position = .(tInfo.x, tInfo.ox, , tInfo.y)
tBtn.BackgroundColor3 = .(, , )
tBtn.Font = .Font.GothamBold
tBtn.Text = tInfo.name
tBtn.TextColor3 = .(, , )
tBtn.TextSize =
tBtn.TextTruncate = .TextTruncate.AtEnd
tBtn.ZIndex =
tBtn.Parent = scriptsScrollFrame
.(, tBtn).CornerRadius = .(, )
(tBtn, )
themeButtons[tInfo.name] = tBtn
tBtn.MouseButton1Click:(()
(tInfo.name, )
)
languagesHeader = .()
languagesHeader.Size = .(, -, , )
languagesHeader.Position = .(, , , )
languagesHeader.BackgroundTransparency =
languagesHeader.Font = .Font.GothamBold
languagesHeader.Text =
languagesHeader.TextColor3 = .(, , )
languagesHeader.TextSize =
languagesHeader.TextXAlignment = .TextXAlignment.Left
languagesHeader.ZIndex =
languagesHeader.Parent = scriptsScrollFrame
(languagesHeader, )
languageLayout = {
{ code = , label = , x = , y = , w = , ox = , ow = - },
{ code = , label = , x = , y = , w = , ox = , ow = - },
{ code = , label = , x = , y = , w = , ox = , ow = - },
}
_, lInfo (languageLayout)
lBtn = .()
lBtn.Name = .. lInfo.code
lBtn.Size = .(lInfo.w, lInfo.ow, , )
lBtn.Position = .(lInfo.x, lInfo.ox, , lInfo.y)
lBtn.BackgroundColor3 = .(, , )
lBtn.Font = .Font.GothamBold
lBtn.Text = lInfo.label
lBtn.TextColor3 = .(, , )
lBtn.TextSize =
lBtn.TextTruncate = .TextTruncate.AtEnd
lBtn.ZIndex =
lBtn.Parent = scriptsScrollFrame
.(, lBtn).CornerRadius = .(, )
(lBtn, )
languageButtons[lInfo.code] = lBtn
lBtn.MouseButton1Click:(()
(lInfo.code)
)
noteBox = .()
noteBox.Name =
noteBox.Size = .(, -, , )
noteBox.Position = .(, , , )
noteBox.BackgroundColor3 = .(, , )
noteBox.Active =
noteBox.ClipsDescendants =
noteBox.ZIndex =
noteBox.Parent = scriptsScrollFrame
.(, noteBox).CornerRadius = .(, )
(noteBox, )
noteLabel = .()
noteLabel.Size = .(, -, , -)
noteLabel.Position = .(, , , )
noteLabel.BackgroundTransparency =
noteLabel.Active =
noteLabel.AutoButtonColor =
noteLabel.Font = .Font.Gotham
noteLabel.Text =
noteLabel.TextColor3 = .(, , )
noteLabel.TextSize =
noteLabel.TextWrapped =
noteLabel.TextXAlignment = .TextXAlignment.Left
noteLabel.TextYAlignment = .TextYAlignment.Top
noteLabel.ZIndex =
noteLabel.Parent = noteBox
(noteLabel, )
(
noteLabel,
.(, , ),
.(, , )
)
(cameraFovValue)
(currentThemeName, )
(currentLanguage)
()
(isScriptsScreenOpen, )
flyToggleBtn, noclipToggleBtn
RunService.Stepped:((_, dt)
char = player.Character
char
noclipActive
_, part (char:())
part:()
part.CanCollide =
joint, rigType = (char)
joint
savedRightShoulderC0
savedRightShoulderC0 = joint.C0
targetBlend = heroPoseActive
step = .((dt ) * , , )
currentArmBlend = currentArmBlend + (targetBlend - currentArmBlend) * step
currentArmBlend >
raisedOffset = (rigType == )
.(.(), , )
.(.(), , .(-))
targetC0 = savedRightShoulderC0 * raisedOffset
joint.C0 = savedRightShoulderC0:(targetC0, currentArmBlend)
heroPoseActive currentArmBlend <=
currentArmBlend =
joint.C0 = savedRightShoulderC0
)
()
flying = flying
(flying)
char = player.Character
char char:()
flying =
root = char.HumanoidRootPart
humanoid = char:OfClass("Humanoid")
local lang = getLangPack()
if flying then
flyToggleBtn.Text = lang.flyOn
flyToggleBtn.TextColor3 = Color3.fromRGB(80, 220, 120)
if humanoid then humanoid.PlatformStand = true end
bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelocity.Velocity = Vector3.new(0, 0, 0)
bodyVelocity.Parent = root
bodyGyro = Instance.new("BodyGyro")
bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
bodyGyro.P = 50000
bodyGyro.Parent = root
else
flyToggleBtn.Text = lang.flyOff
flyToggleBtn.TextColor3 = Color3.fromRGB(220, 80, 80)
if humanoid then humanoid.PlatformStand = false end
if bodyVelocity then pcall(function() bodyVelocity:Destroy() end) end
if bodyGyro then pcall(function() bodyGyro:Destroy() end) end
if root then root.Velocity = Vector3.new(0, 0, 0) end
end
end
local function toggleNoclip()
noclipActive = not noclipActive
pulseStrokeColor(noclipActive)
local lang = getLangPack()
if noclipActive then
noclipToggleBtn.Text = lang.noclipOn
noclipToggleBtn.TextColor3 = Color3.fromRGB(80, 220, 120)
else
noclipToggleBtn.Text = lang.noclipOff
noclipToggleBtn.TextColor3 = Color3.fromRGB(220, 80, 80)
local char = player.Character
if char then
for _, part in ipairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = true
end
end
end
end
end
RunService.RenderStepped:Connect(function(dt)
pcall(function()
if not flying then return end
local char = player.Character
if not char or not char:FindFirstChild("HumanoidRootPart") or not char:FindFirstChildOfClass("Humanoid") then
if flying then toggleFly() end
return
end
local root = char.HumanoidRootPart
local humanoid = char:FindFirstChildOfClass("Humanoid")
humanoid.PlatformStand = true
local moveVector = Vector3.new(0, 0, 0)
if controlModule then
moveVector = controlModule:GetMoveVector()
else
moveVector = humanoid.MoveDirection
end
local activeCam = workspace.CurrentCamera or camera
local camCFrame = activeCam.CFrame
local camLook = camCFrame.LookVector
local camRight = camCFrame.RightVector
local targetVelocity = Vector3.new(0, 0, 0)
if moveVector.Magnitude > 0.01 then
targetVelocity = (camLook * (-moveVector.Z) + camRight * moveVector.X) * flySpeed
end
if bodyVelocity and bodyVelocity.Parent then
bodyVelocity.Velocity = targetVelocity
end
if bodyGyro and bodyGyro.Parent then
bodyGyro.CFrame = camCFrame
end
if flyCamShakeActive and activeCam then
local speedRatio = math.clamp(targetVelocity.Magnitude / math.max(flySpeed, 1), 0.25, 1.5)
local t = tick() * (14 + (flySpeed * 0.05))
local amp = 0.045 * speedRatio
local shakeOffset = Vector3.new(
math.sin(t * 1.13) * amp,
math.cos(t * 1.47) * amp,
math.sin(t * 0.89) * (amp * 0.5)
)
local shakeTilt = CFrame.Angles(
math.rad(math.sin(t * 1.3) * 0.22 * speedRatio),
math.rad(math.cos(t * 0.95) * 0.22 * speedRatio),
math.rad(math.sin(t * 1.65) * 0.35 * speedRatio)
)
activeCam.CFrame = camCFrame * CFrame.new(shakeOffset) * shakeTilt
end
end)
end)
player.CharacterAdded:Connect(function(char)
savedRightShoulderC0 = nil
currentArmBlend = 0
if flying then toggleFly() end
task.wait(1)
local flyBtn, noclipBtn = createMobileGui()
if flyBtn then flyBtn.MouseButton1Click:Connect(toggleFly) end
if noclipBtn then noclipBtn.MouseButton1Click:Connect(toggleNoclip) end
syncHeroPoseUi()
end)
local initialFlyBtn, initialNoclipBtn = createMobileGui()
if initialFlyBtn then initialFlyBtn.MouseButton1Click:Connect(toggleFly) end
if initialNoclipBtn then initialNoclipBtn.MouseButton1Click:Connect(toggleNoclip) endFly mobile no key by KM studios unieversal

Universal