local g=camera.CameraType camera.CameraType=Enum.CameraType.Scriptable local T if config.GunsEnabled.Value then T=plane.AimPart.GUI:Clone()T.Parent=player.PlayerGui T.Enabled=true T.Adornee=plane.AimPart if plane:FindFirstChild("\071\117\110\115")then for g,T in pairs(plane.Guns:GetChildren())do T.ChildAdded:connect(function(g)if g.Name=="\066\117\108\108\101\116"then g.CFrame=T.Muzzle.CFrame end end)end end end local X=(game:GetService("\082\117\110\083\101\114\118\105\099\101")).RenderStepped local E=script.MobileGui local a=false local s,c=Vector2.new(),Vector2.new()local O,B=0,0 local z=0 if userInputService.TouchEnabled then userInputService.ModalEnabled=true E.Parent=player.PlayerGui E.Throttle.Slider.MouseButton1Down:connect(function()a=true local g g=userInputService.TouchEnded:connect(function()a=false g:disconnect()end)while a do X:wait()local g=mouse.Y-E.Throttle.AbsolutePosition.Y local T=math.min(math.max(g/E.Throttle.AbsoluteSize.Y,0),1)z=(1-T)*config.Speed.Value E.Throttle.Slider.Position=UDim2.new(0,-10,T,-35)end end)else E:Destroy()end local H=Instance.new("\066\111\100\121\071\121\114\111",body)H.D=30 H.P=300 H.MaxTorque=Vector3.new()local Z=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",body)Z.P=math.huge Z.MaxForce=Vector3.new()
-- You don't need to touch any of this
local cameraType = camera.CameraType
camera.CameraType = Enum.CameraType.Scriptable

local aimGui

if config.GunsEnabled.Value then
	aimGui = plane.AimPart.GUI:Clone()
	aimGui.Parent = player.PlayerGui
	aimGui.Enabled = true
	aimGui.Adornee = plane.AimPart

	if plane:FindFirstChild("Guns") then
		for _, gun in pairs(plane.Guns:GetChildren()) do
			gun.ChildAdded:connect(function(bullet)
				if bullet.Name == "Bullet" then
					bullet.CFrame = gun.Muzzle.CFrame
				end
			end)
		end
	end
end

local rs = game:GetService("RunService").RenderStepped

local mobileGui = script.MobileGui
local sliding = false

local thumb1, thumb2 = Vector2.new(), Vector2.new()
local x, y = 0, 0
local speed = 0

if userInputService.TouchEnabled then
	userInputService.ModalEnabled = true
	mobileGui.Parent = player.PlayerGui
	mobileGui.Throttle.Slider.MouseButton1Down:connect(function()
		sliding = true
		local mu
		mu = userInputService.TouchEnded:connect(function()
			sliding = false
			mu:disconnect()
		end)
		while sliding do
			rs:wait()
			local mouseY = mouse.Y - mobileGui.Throttle.AbsolutePosition.Y
			local s = math.min(math.max(mouseY / mobileGui.Throttle.AbsoluteSize.Y, 0), 1)
			speed = (1 - s) * config.Speed.Value
			mobileGui.Throttle.Slider.Position = UDim2.new(0, -10, s, -35)
		end
	end)
else
	mobileGui:Destroy()
end

local bodyGyro = Instance.new("BodyGyro", body)
bodyGyro.D = 30
bodyGyro.P = 300
bodyGyro.MaxTorque = Vector3.new()

local bodyVelocity = Instance.new("BodyVelocity", body)
bodyVelocity.P = math.huge
bodyVelocity.MaxForce = Vector3.new()
