-- Initializing UI Elements local ScreenGui = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local Title = Instance.new("TextLabel") local FlyBtn = Instance.new("TextButton") local NoclipBtn = Instance.new("TextButton") -- UI Properties ScreenGui.Parent = game.CoreGui ScreenGui.Name = "ModMenu" MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35) MainFrame.Position = UDim2.new(0.5, -75, 0.5, -50) MainFrame.Size = UDim2.new(0, 150, 0, 130) MainFrame.Active = true MainFrame.Draggable = true -- Standard dragging for executors Title.Parent = MainFrame Title.Size = UDim2.new(1, 0, 0, 30) Title.Text = "Mini Mod Menu" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundColor3 = Color3.fromRGB(50, 50, 50) FlyBtn.Parent = MainFrame FlyBtn.Position = UDim2.new(0.1, 0, 0.3, 0) FlyBtn.Size = UDim2.new(0.8, 0, 0.25, 0) FlyBtn.Text = "Fly: OFF" FlyBtn.BackgroundColor3 = Color3.fromRGB(70, 70, 70) FlyBtn.TextColor3 = Color3.fromRGB(255, 255, 255) NoclipBtn.Parent = MainFrame NoclipBtn.Position = UDim2.new(0.1, 0, 0.65, 0) NoclipBtn.Size = UDim2.new(0.8, 0, 0.25, 0) NoclipBtn.Text = "Noclip: OFF" NoclipBtn.BackgroundColor3 = Color3.fromRGB(70, 70, 70) NoclipBtn.TextColor3 = Color3.fromRGB(255, 255, 255) --- Variables for Logic --- local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local flying = false local noclip = false local speed = 50 --- Noclip Logic --- game:GetService("RunService").Stepped:Connect(function() if noclip and player.Character then for _, part in pairs(player.Character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end end) NoclipBtn.MouseButton1Click:Connect(function() noclip = not noclip NoclipBtn.Text = "Noclip: " .. (noclip and "ON" or "OFF") NoclipBtn.BackgroundColor3 = noclip and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(70, 70, 70) end) --- Fly Logic --- FlyBtn.MouseButton1Click:Connect(function() flying = not flying FlyBtn.Text = "Fly: " .. (flying and "ON" or "OFF") FlyBtn.BackgroundColor3 = flying and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(70, 70, 70) local root = player.Character:WaitForChild("HumanoidRootPart") if flying then local bv = Instance.new("BodyVelocity") bv.Name = "FlyVelocity" bv.Parent = root bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bv.Velocity = Vector3.new(0, 0, 0) local bg = Instance.new("BodyGyro") bg.Name = "FlyGyro" bg.Parent = root bg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge) bg.CFrame = root.CFrame task.spawn(function() while flying do bv.Velocity = workspace.CurrentCamera.CFrame.LookVector * speed bg.CFrame = workspace.CurrentCamera.CFrame task.wait() end bv:Destroy() bg:Destroy() end) end end)