--[[ Fly + Fling Tab GUI by Deva ]]--
local player = game.Players.LocalPlayer
local lp = player
local char = lp.Character or lp.CharacterAdded:wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local hum = char:WaitForChild("Humanoid")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
-- Anti-detection
if not ReplicatedStorage:FindFirstChild("juisdfj0i32i0eidsuf0iok") then
local detection = Instance.new("Decal")
detection.Name = "juisdfj0i32i0eidsuf0iok"
detection.Parent = ReplicatedStorage
end
-- GUI
local screen = Instance.new("ScreenGui")
screen.Name = "DevaGUI"
screen.Parent = game.CoreGui
screen.ResetOnSpawn = false
local frame = Instance.new("Frame")
frame.Parent = screen
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
frame.Position = UDim2.new(0.35, 0, 0.3, 0)
frame.Size = UDim2.new(0, 300, 0, 270)
frame.Active = true
frame.Draggable = true
local UICorner = Instance.new("UICorner")
UICorner.Parent = frame
-- Tab buttons
local flyTabBtn = Instance.new("TextButton")
flyTabBtn.Parent = frame
flyTabBtn.Size = UDim2.new(0, 140, 0, 30)
flyTabBtn.Position = UDim2.new(0, 5, 0, 5)
flyTabBtn.Text = "Fly Tab"
flyTabBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0)
flyTabBtn.TextColor3 = Color3.fromRGB(255,255,255)
local flingTabBtn = Instance.new("TextButton")
flingTabBtn.Parent = frame
flingTabBtn.Size = UDim2.new(0, 140, 0, 30)
flingTabBtn.Position = UDim2.new(0, 155, 0, 5)
flingTabBtn.Text = "Fling Tab"
flingTabBtn.BackgroundColor3 = Color3.fromRGB(70,70,90)
flingTabBtn.TextColor3 = Color3.fromRGB(255,255,255)
-- Fly Tab content
local flyFrame = Instance.new("Frame")
flyFrame.Parent = frame
flyFrame.Size = UDim2.new(1, -10, 1, -65)
flyFrame.Position = UDim2.new(0, 5, 0, 40)
flyFrame.BackgroundTransparency = 1
flyFrame.Visible = true
local flyToggle = Instance.new("TextButton")
flyToggle.Parent = flyFrame
flyToggle.Size = UDim2.new(0, 120, 0, 40)
flyToggle.Position = UDim2.new(0.5, -60, 0.2, 0)
flyToggle.Text = "Fly: OFF"
flyToggle.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
flyToggle.TextColor3 = Color3.fromRGB(255,255,255)
flyToggle.TextSize = 24
local flyStatus = Instance.new("TextLabel")
flyStatus.Parent = flyFrame
flyStatus.Size = UDim2.new(1, 0, 0, 30)
flyStatus.Position = UDim2.new(0, 0, 0.5, 0)
flyStatus.Text = "Status: Not Flying"
flyStatus.BackgroundTransparency = 1
flyStatus.TextColor3 = Color3.fromRGB(200,200,200)
-- Fling Tab content
local flingFrame = Instance.new("Frame")
flingFrame.Parent = frame
flingFrame.Size = UDim2.new(1, -10, 1, -65)
flingFrame.Position = UDim2.new(0, 5, 0, 40)
flingFrame.BackgroundTransparency = 1
flingFrame.Visible = false
local flingToggle = Instance.new("TextButton")
flingToggle.Parent = flingFrame
flingToggle.Size = UDim2.new(0, 120, 0, 40)
flingToggle.Position = UDim2.new(0.5, -60, 0.1, 0)
flingToggle.Text = "OFF"
flingToggle.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
flingToggle.TextColor3 = Color3.fromRGB(255,255,255)
flingToggle.TextSize = 24
local powerLabel = Instance.new("TextLabel")
powerLabel.Parent = flingFrame
powerLabel.Size = UDim2.new(1, 0, 0, 30)
powerLabel.Position = UDim2.new(0, 0, 0.35, 0)
powerLabel.Text = "Fling Power: 10000"
powerLabel.BackgroundTransparency = 1
powerLabel.TextColor3 = Color3.fromRGB(255,255,255)
local powerBar = Instance.new("Frame")
powerBar.Parent = flingFrame
powerBar.Size = UDim2.new(0.8, 0, 0.08, 0)
powerBar.Position = UDim2.new(0.1, 0, 0.5, 0)
powerBar.BackgroundColor3 = Color3.fromRGB(50,50,50)
local powerBarCorner = Instance.new("UICorner")
powerBarCorner.Parent = powerBar
local powerSlider = Instance.new("TextButton")
powerSlider.Parent = powerBar
powerSlider.Size = UDim2.new(0.1, 0, 1, 0)
powerSlider.BackgroundColor3 = Color3.fromRGB(0,150,255)
powerSlider.Text = ""
local sliderCorner = Instance.new("UICorner")
sliderCorner.Parent = powerSlider
-- Bottom credit
local credit = Instance.new("TextLabel")
credit.Parent = frame
credit.Size = UDim2.new(1, 0, 0, 20)
credit.Position = UDim2.new(0, 0, 1, -22)
credit.Text = "Made by Deva"
credit.TextColor3 = Color3.fromRGB(150, 150, 150)
credit.BackgroundTransparency = 1
credit.TextSize = 12
credit.TextScaled = true
-- Fling variables
local hiddenfling = false
local flingPower = 10000
local dragging = false
-- Fly variables
local flying = false
local bodyVel, bodyGyro
-- Fling logic (EXACT from your script)
local function flingLoop()
local hrpLocal, c, vel, movel = nil, nil, nil, 0.1
while true do
RunService.Heartbeat:Wait()
if hiddenfling then
while hiddenfling and not (c and c.Parent and hrpLocal and hrpLocal.Parent) do
RunService.Heartbeat:Wait()
c = lp.Character
hrpLocal = c and c:FindFirstChild("HumanoidRootPart")
end
if hiddenfling then
vel = hrpLocal.Velocity
hrpLocal.Velocity = vel * flingPower + Vector3.new(0, flingPower, 0)
RunService.RenderStepped:Wait()
if c and c.Parent and hrpLocal and hrpLocal.Parent then
hrpLocal.Velocity = vel
end
RunService.Stepped:Wait()
if c and c.Parent and hrpLocal and hrpLocal.Parent then
hrpLocal.Velocity = vel + Vector3.new(0, movel, 0)
movel = movel * -1
end
end
end
end
end
-- Fly logic
local function startFly()
if flying then return end
flying = true
hum.PlatformStand = true
bodyVel = Instance.new("BodyVelocity")
bodyGyro = Instance.new("BodyGyro")
bodyVel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
bodyVel.Parent = hrp
bodyGyro.Parent = hrp
local speed = 150
local upSpeed = 100
local function updateFly()
if not flying then return end
local moveVector = Vector3.new()
local camera = workspace.CurrentCamera
local cameraCF = camera.CFrame
if UserInputService:IsKeyDown(Enum.KeyCode.W) then
moveVector = moveVector + cameraCF.LookVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.S) then
moveVector = moveVector - cameraCF.LookVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.A) then
moveVector = moveVector - cameraCF.RightVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.D) then
moveVector = moveVector + cameraCF.RightVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.Space) then
moveVector = moveVector + Vector3.new(0, 1, 0)
end
if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
moveVector = moveVector - Vector3.new(0, 1, 0)
end
if moveVector.Magnitude > 0 then
moveVector = moveVector.Unit
end
local horizontalMove = Vector3.new(moveVector.X, 0, moveVector.Z) * speed
local verticalMove = Vector3.new(0, moveVector.Y, 0) * upSpeed
bodyVel.Velocity = horizontalMove + verticalMove
bodyGyro.CFrame = cameraCF
end
RunService.RenderStepped:Connect(function()
if flying then
updateFly()
end
end)
flyToggle.Text = "Fly: ON"
flyToggle.BackgroundColor3 = Color3.fromRGB(0,150,0)
flyStatus.Text = "Status: Flying (WASD + Space/Shift)"
end
local function stopFly()
if bodyVel then bodyVel:Destroy() end
if bodyGyro then bodyGyro:Destroy() end
flying = false
hum.PlatformStand = false
hrp.Velocity = Vector3.new(0,0,0)
flyToggle.Text = "Fly: OFF"
flyToggle.BackgroundColor3 = Color3.fromRGB(150,0,0)
flyStatus.Text = "Status: Not Flying"
end
-- Button connections
flyToggle.MouseButton1Click:Connect(function()
if flying then
stopFly()
else
startFly()
end
end)
flingToggle.MouseButton1Click:Connect(function()
hiddenfling = not hiddenfling
if hiddenfling then
flingToggle.Text = "ON"
flingToggle.BackgroundColor3 = Color3.fromRGB(0,150,0)
else
flingToggle.Text = "OFF"
flingToggle.BackgroundColor3 = Color3.fromRGB(150,0,0)
end
end)
-- Power slider
powerSlider.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
end
end)
powerSlider.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = false
end
end)
UserInputService.InputChanged:Connect(function(input)
if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
local mousePos = input.Position.X
local barPos = powerBar.AbsolutePosition.X
local barSize = powerBar.AbsoluteSize.X
local newPos = math.clamp((mousePos - barPos) / barSize, 0, 1)
powerSlider.Position = UDim2.new(newPos, 0, 0, 0)
flingPower = math.floor(newPos * 50000) + 5000
powerLabel.Text = "Fling Power: " .. flingPower
end
end)
-- Tab switching
flyTabBtn.MouseButton1Click:Connect(function()
flyFrame.Visible = true
flingFrame.Visible = false
flyTabBtn.BackgroundColor3 = Color3.fromRGB(0,150,0)
flingTabBtn.BackgroundColor3 = Color3.fromRGB(70,70,90)
end)
flingTabBtn.MouseButton1Click:Connect(function()
flyFrame.Visible = false
flingFrame.Visible = true
flyTabBtn.BackgroundColor3 = Color3.fromRGB(70,70,90)
flingTabBtn.BackgroundColor3 = Color3.fromRGB(0,150,0)
end)
-- Start fling loop
coroutine.wrap(flingLoop)()
-- Character respawn handling
lp.CharacterAdded:Connect(function(newChar)
char = newChar
hrp = char:WaitForChild("HumanoidRootPart")
hum = char:WaitForChild("Humanoid")
if flying then
stopFly()
end
end)