
KeylessUniversal

--[[
MUFFIN'S FLY GUI: THE "AESTHETIC" EDITION (REMASTERED)
Optimizations: Combined RenderStepped loops, fixed camera flight axis, safe character tracking.
]]
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local TextChatService = game:GetService("TextChatService")
local LegacyChat = game:GetService("Chat")
local player = Players.LocalPlayer
local flying = false
local speed = 50
local attachment, lv, ao, character, humanoid, root
-- // EXECUTION FORCED PLAYER CHAT HANDLER
local function forcePlayerChat(message)
-- Modern TextChatService Detection (Most modern Roblox games)
if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
local generalChannel = TextChatService:FindFirstChild("TextChannels") and TextChatService.TextChannels:FindFirstChild("RBXGeneral")
if generalChannel then
generalChannel:SendAsync(message)
end
else
-- Legacy Engine Chat fallback
local head = player.Character and player.Character:FindFirstChild("Head")
if head then
LegacyChat:Chat(head, message)
end
end
end
-- Run player chat sequence asynchronously
task.spawn(function()
forcePlayerChat("Fly GUI V3")
task.wait(2)
forcePlayerChat("Made By Muffin")
end)
-- // CLEANUP PREVIOUS
local existing = player:WaitForChild("PlayerGui"):FindFirstChild("MuffinAestheticFly")
if existing then existing:Destroy() end
-- // UI SETUP
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "MuffinAestheticFly"
ScreenGui.Parent = player.PlayerGui
ScreenGui.ResetOnSpawn = false
-- Main Frame (The Glass Container)
local MainFrame = Instance.new("Frame", ScreenGui)
MainFrame.Size = UDim2.fromOffset(280, 150)
MainFrame.Position = UDim2.new(0.5, -140, 0.2, 0)
MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 20)
MainFrame.BackgroundTransparency = 0.15
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
local Corner = Instance.new("UICorner", MainFrame)
Corner.CornerRadius = UDim.new(0, 15)
-- Animated Gradient Border
local UIStroke = Instance.new("UIStroke", MainFrame)
UIStroke.Thickness = 3.5
UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
local UIGradient = Instance.new("UIGradient", UIStroke)
UIGradient.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 255)), -- Magenta
ColorSequenceKeypoint.new(0.5, Color3.fromRGB(0, 255, 255)), -- Cyan
ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 255))
})
-- Top Title Styling
local Title = Instance.new("TextLabel", MainFrame)
Title.Size = UDim2.new(1, 0, 0.4, 0)
Title.Text = "MUFFIN'S V3"
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.FredokaOne
Title.TextSize = 26
Title.TextColor3 = Color3.new(1, 1, 1)
local SubTitle = Instance.new("TextLabel", MainFrame)
SubTitle.Size = UDim2.new(1, 0, 0.2, 0)
SubTitle.Position = UDim2.new(0, 0, 0.35, 0)
SubTitle.Text = "ULTRA-PREMIUM FLIGHT"
SubTitle.BackgroundTransparency = 1
SubTitle.Font = Enum.Font.GothamBold
SubTitle.TextSize = 10
SubTitle.TextColor3 = Color3.fromRGB(150, 150, 150)
SubTitle.TextStrokeTransparency = 0.8
-- Modern Toggle Button
local Toggle = Instance.new("TextButton", MainFrame)
Toggle.Size = UDim2.new(0.8, 0, 0.3, 0)
Toggle.Position = UDim2.new(0.1, 0, 0.6, 0)
Toggle.Text = "INITIALIZE"
Toggle.TextSize = 14
Toggle.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
Toggle.TextColor3 = Color3.new(1, 1, 1)
Toggle.Font = Enum.Font.GothamBold
Toggle.AutoButtonColor = false
local ToggleCorner = Instance.new("UICorner", Toggle)
ToggleCorner.CornerRadius = UDim.new(0, 8)
local ToggleStroke = Instance.new("UIStroke", Toggle)
ToggleStroke.Thickness = 1
ToggleStroke.Color = Color3.fromRGB(60, 60, 70)
-- // PHYSICS INITIALIZER
local function setupPhysics()
character = player.Character or player.CharacterAdded:Wait()
humanoid = character:WaitForChild("Humanoid")
root = character:WaitForChild("HumanoidRootPart")
if flying then
if attachment then attachment:Destroy() end
humanoid.PlatformStand = true
attachment = Instance.new("Attachment", root)
lv = Instance.new("LinearVelocity", attachment)
lv.MaxForce = 9e9
lv.VectorVelocity = Vector3.zero
lv.Attachment0 = attachment
ao = Instance.new("AlignOrientation", attachment)
ao.MaxTorque = 9e9
ao.Responsiveness = 200
ao.Mode = Enum.OrientationAlignmentMode.OneAttachment
ao.Attachment0 = attachment
end
end
-- // COMBINED FRAME LOOP (Saves CPU Overhead)
local PlayerModule = require(player.PlayerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
RunService.RenderStepped:Connect(function()
-- UI Animations
UIGradient.Rotation = (tick() * 120) % 360
Title.TextColor3 = Color3.fromHSV(tick() % 5 / 5, 0.4, 1)
-- Movement Processing
if flying and root and workspace.CurrentCamera and lv and ao then
local cam = workspace.CurrentCamera
local moveVector = Controls:GetMoveVector()
local direction = Vector3.zero
-- Forward / Backward / Strafe
if moveVector.Magnitude > 0 then
direction = (cam.CFrame.LookVector * -moveVector.Z) + (cam.CFrame.RightVector * moveVector.X)
end
-- Up / Down Flight Controls via Keyboard Space/Shift
if UserInputService:IsKeyDown(Enum.KeyCode.Space) then
direction = direction + Vector3.new(0, 1, 0)
elseif UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
direction = direction + Vector3.new(0, -1, 0)
end
-- Apply final velocity vector
if direction.Magnitude > 0 then
lv.VectorVelocity = direction.Unit * speed
else
lv.VectorVelocity = Vector3.zero
end
ao.CFrame = cam.CFrame
end
end)
-- Hover Tweens
Toggle.MouseEnter:Connect(function()
TweenService:Create(Toggle, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(45, 45, 60)}):Play()
end)
Toggle.MouseLeave:Connect(function()
TweenService:Create(Toggle, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(30, 30, 40)}):Play()
end)
-- Toggle Activation Click
Toggle.MouseButton1Click:Connect(function()
flying = not flying
Toggle:TweenSize(UDim2.new(0.75, 0, 0.25, 0), "Out", "Quad", 0.1, true)
task.wait(0.1)
Toggle:TweenSize(UDim2.new(0.8, 0, 0.3, 0), "Out", "Back", 0.3, true)
if flying then
Toggle.Text = "STATUS: ACTIVE"
TweenService:Create(ToggleStroke, TweenInfo.new(0.3), {Color = Color3.fromRGB(0, 255, 150)}):Play()
setupPhysics()
else
Toggle.Text = "STATUS: INACTIVE"
TweenService:Create(ToggleStroke, TweenInfo.new(0.3), {Color = Color3.fromRGB(255, 50, 50)}):Play()
if humanoid then humanoid.PlatformStand = false end
if attachment then attachment:Destroy() end
end
end)
-- // SMOOTH DRAGGING LOGIC
local dragging, dragStart, startPos
MainFrame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true; dragStart = input.Position; startPos = MainFrame.Position
end
end)
UserInputService.InputChanged:Connect(function(input)
if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
local delta = input.Position - dragStart
MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
UserInputService.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end
end)No comments yet for this script.



