Skip to content

Instantly share code, notes, and snippets.

@Sadnauj772
Created June 24, 2025 19:43
Show Gist options
  • Save Sadnauj772/daba99128314616b68534750a10a3d1d to your computer and use it in GitHub Desktop.
Save Sadnauj772/daba99128314616b68534750a10a3d1d to your computer and use it in GitHub Desktop.
Ram122.lua
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
-- Состояния
local speedEnabled = false
local jumpEnabled = false
local noclipEnabled = false
local flyEnabled = false
local espEnabled = false
local flyConnection
-- GUI
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "CustomMenu"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = PlayerGui
local MiniButton = Instance.new("TextButton")
MiniButton.Size = UDim2.new(0, 50, 0, 30)
MiniButton.Position = UDim2.new(0, 20, 0, 100)
MiniButton.Text = "+"
MiniButton.Visible = false
MiniButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
MiniButton.TextColor3 = Color3.new(1, 1, 1)
MiniButton.Font = Enum.Font.GothamBold
MiniButton.TextSize = 18
MiniButton.BorderSizePixel = 0
MiniButton.Parent = ScreenGui
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 300, 0, 420) -- Увеличено под все кнопки
Frame.Position = UDim2.new(0.5, -150, 0.5, -210)
Frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
Frame.BorderSizePixel = 0
Frame.Active = true
Frame.Draggable = true
Frame.Parent = ScreenGui
local UICorner = Instance.new("UICorner", Frame)
UICorner.CornerRadius = UDim.new(0, 10)
local UIListLayout = Instance.new("UIListLayout", Frame)
UIListLayout.Padding = UDim.new(0, 8)
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Top
local Spacer = Instance.new("Frame")
Spacer.Size = UDim2.new(1, 0, 0, 10)
Spacer.BackgroundTransparency = 1
Spacer.BorderSizePixel = 0
Spacer.Parent = Frame
-- Универсальный генератор кнопок
local function CreateButton(text, callback)
local button = Instance.new("TextButton")
button.Size = UDim2.new(0.9, 0, 0, 40) -- ширина кнопок чуть больше
button.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
button.Text = text
button.TextColor3 = Color3.new(1, 1, 1)
button.Font = Enum.Font.GothamBold
button.TextSize = 16
button.BorderSizePixel = 0
Instance.new("UICorner", button).CornerRadius = UDim.new(0, 8)
button.MouseButton1Click:Connect(callback)
button.Parent = Frame
return button
end
-- Кнопки
CreateButton("Скорость (вкл/выкл)", function()
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
speedEnabled = not speedEnabled
humanoid.WalkSpeed = speedEnabled and 2500 or 16
end)
CreateButton("Прыжок (вкл/выкл)", function()
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
jumpEnabled = not jumpEnabled
humanoid.UseJumpPower = true
humanoid.JumpPower = jumpEnabled and 2500 or 50
end)
CreateButton("Noclip (вкл/выкл)", function()
noclipEnabled = not noclipEnabled
end)
RunService.Stepped:Connect(function()
if noclipEnabled then
local character = LocalPlayer.Character
if character then
for _, part in pairs(character:GetDescendants()) do
if part:IsA("BasePart") and not part:IsDescendantOf(workspace.Terrain) then
part.CanCollide = false
end
end
end
end
end)
CreateButton("Fly (вкл/выкл)", function()
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local hrp = character:FindFirstChild("HumanoidRootPart")
flyEnabled = not flyEnabled
if flyEnabled and hrp then
local bodyVel = Instance.new("BodyVelocity")
bodyVel.Name = "FlyVelocity"
bodyVel.MaxForce = Vector3.new(1e5, 1e5, 1e5)
bodyVel.Velocity = Vector3.zero
bodyVel.Parent = hrp
flyConnection = RunService.RenderStepped:Connect(function()
local dir = Vector3.zero
local cam = workspace.CurrentCamera
if UserInputService:IsKeyDown(Enum.KeyCode.W) then dir += cam.CFrame.LookVector end
if UserInputService:IsKeyDown(Enum.KeyCode.S) then dir -= cam.CFrame.LookVector end
if UserInputService:IsKeyDown(Enum.KeyCode.A) then dir -= cam.CFrame.RightVector end
if UserInputService:IsKeyDown(Enum.KeyCode.D) then dir += cam.CFrame.RightVector end
if UserInputService:IsKeyDown(Enum.KeyCode.Space) then dir += Vector3.new(0, 1, 0) end
if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then dir -= Vector3.new(0, 1, 0) end
-- Защита от нулевого вектора
if dir.Magnitude > 0 then
bodyVel.Velocity = dir.Unit * 50
else
bodyVel.Velocity = Vector3.zero
end
end)
else
if hrp and hrp:FindFirstChild("FlyVelocity") then
hrp.FlyVelocity:Destroy()
end
if flyConnection then flyConnection:Disconnect() end
end
end)
CreateButton("ESP (вкл/выкл)", function()
espEnabled = not espEnabled
for _, plr in pairs(Players:GetPlayers()) do
if plr ~= LocalPlayer and plr.Character then
if espEnabled then
local hl = Instance.new("Highlight", plr.Character)
hl.Name = "ESPHighlight"
hl.FillColor = Color3.fromRGB(255, 0, 0)
else
if plr.Character:FindFirstChild("ESPHighlight") then
plr.Character.ESPHighlight:Destroy()
end
end
end
end
end)
Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
if espEnabled then
local hl = Instance.new("Highlight", char)
hl.Name = "ESPHighlight"
hl.FillColor = Color3.fromRGB(255, 0, 0)
end
end)
end)
CreateButton("Анти-АФК", function()
local vUser = game:GetService("VirtualUser")
LocalPlayer.Idled:Connect(function()
vUser:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
wait(1)
vUser:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
end)
end)
CreateButton("Убить игрока", function()
local target = Players:GetPlayers()[2]
if target and target.Character then
for _, tool in ipairs(LocalPlayer.Backpack:GetChildren()) do
if tool:IsA("Tool") and tool:FindFirstChild("Handle") then
tool.Parent = LocalPlayer.Character
local part = target.Character:FindFirstChild("HumanoidRootPart") or target.Character:FindFirstChild("Torso")
if part then
pcall(function()
firetouchinterest(tool.Handle, part, 0)
firetouchinterest(tool.Handle, part, 1)
end)
end
end
end
end
end)
-- Кнопка сворачивания
local CollapseButton = Instance.new("TextButton")
CollapseButton.Size = UDim2.new(0, 30, 0, 30)
CollapseButton.Position = UDim2.new(1, -35, 0, 5)
CollapseButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
CollapseButton.Text = "-"
CollapseButton.TextColor3 = Color3.new(1, 1, 1)
CollapseButton.Font = Enum.Font.GothamBold
CollapseButton.TextSize = 16
CollapseButton.BorderSizePixel = 0
CollapseButton.Parent = Frame
Instance.new("UICorner", CollapseButton).CornerRadius = UDim.new(1, 0)
CollapseButton.MouseButton1Click:Connect(function()
Frame.Visible = false
MiniButton.Visible = true
end)
MiniButton.MouseButton1Click:Connect(function()
Frame.Visible = true
MiniButton.Visible = false
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment