local u=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 u,t in pairs(plane.Guns:GetChildren())do t.ChildAdded:connect(function(u)if u.Name=="\066\117\108\108\101\116"then u.CFrame=t.Muzzle.CFrame end end)end end end local P=(game:GetService("\082\117\110\083\101\114\118\105\099\101")).RenderStepped local U=script.MobileGui local b=false local q,T=Vector2.new(),Vector2.new()local x,k=0,0 local E=0 if userInputService.TouchEnabled then userInputService.ModalEnabled=true U.Parent=player.PlayerGui U.Throttle.Slider.MouseButton1Down:connect(function()b=true local u u=userInputService.TouchEnded:connect(function()b=false u:disconnect()end)while b do P:wait()local u=mouse.Y-U.Throttle.AbsolutePosition.Y local t=math.min(math.max(u/U.Throttle.AbsoluteSize.Y,0),1)E=(1-t)*config.Speed.Value U.Throttle.Slider.Position=UDim2.new(0,-10,t,-35)end end)else U:Destroy()end local B=Instance.new("\066\111\100\121\071\121\114\111",body)B.D=30 B.P=300 B.MaxTorque=Vector3.new()local a=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",body)a.P=math.huge a.MaxForce=Vector3.new()

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()
