KEMBAR78
APOC | PDF
0% found this document useful (0 votes)
26 views2 pages

APOC

Uploaded by

lalo lansia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

APOC

Uploaded by

lalo lansia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

local TweenService = game:GetService("TweenService")

local Players = game:GetService("Players")


local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer

-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomUI"
screenGui.Parent = player:WaitForChild("PlayerGui")

-- Main Frame
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0.4, 0, 0.6, 0)
mainFrame.Position = UDim2.new(0.3, 0, 0.2, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(128, 128, 128) -- Grey background
mainFrame.BorderSizePixel = 2
mainFrame.Parent = screenGui

-- Create gradient background


local uiGradient = Instance.new("UIGradient")
uiGradient.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0, Color3.fromRGB(38, 70, 83)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(233, 196, 106))
}
uiGradient.Parent = mainFrame

-- Function to create a section


local function createSection(parent, titleText)
local sectionFrame = Instance.new("Frame")
sectionFrame.Size = UDim2.new(1, 0, 0.2, 0)
sectionFrame.BackgroundTransparency = 1
sectionFrame.Parent = parent

local titleLabel = Instance.new("TextLabel")


titleLabel.Text = titleText
titleLabel.Size = UDim2.new(1, 0, 1, 0)
titleLabel.Position = UDim2.new(0, 0, 0, 0)
titleLabel.TextColor3 = Color3.new(1, 1, 1)
titleLabel.Font = Enum.Font.SourceSansBold
titleLabel.TextSize = 20
titleLabel.BackgroundTransparency = 1
titleLabel.Parent = sectionFrame

return sectionFrame
end

-- Add sections for ESP, Silent Aim, Fullbright, and Walkspeed


local espSection = createSection(mainFrame, "F1 For ESP")
local aimSection = createSection(mainFrame, "F2 For Aimbot (same)")
local fullbrightSection = createSection(mainFrame, "F3 For Fullbright")
local walkspeedSection = createSection(mainFrame, "F4 for walkspeed (currently set
to 35) ")

-- Arrange sections vertically


espSection.Position = UDim2.new(0, 0, 0, 0)
aimSection.Position = UDim2.new(0, 0, 0.25, 0)
fullbrightSection.Position = UDim2.new(0, 0, 0.5, 0)
walkspeedSection.Position = UDim2.new(0, 0, 0.75, 0)

-- Make GUI draggable


local dragging = false
local dragInput, dragStart, startPos
mainFrame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = mainFrame.Position
end
end)

mainFrame.InputChanged:Connect(function(input)
if dragging and input.UserInputType == Enum.UserInputType.MouseMovement 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)

mainFrame.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)

-- Hotkey Script Loading


local hotkeyScripts = {
F1 = "https://pastebin.com/raw/KXCx1WhT", -- ESP
F2 = "https://pastebin.com/raw/C6es912m", -- Silent Aim
F3 = "https://pastebin.com/raw/ZV7qJKHU", -- Fullbright
F4 = "https://pastebin.com/raw/UxhYt92r" -- Walkspeed
}

local function safeLoadScript(url)


local success, err = pcall(function()
loadstring(game:HttpGet(url))()
end)
if not success then
warn("Error executing script from URL: " .. url .. " | Error: " ..
tostring(err))
end
end

UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
local key = input.KeyCode.Name
if hotkeyScripts[key] then
safeLoadScript(hotkeyScripts[key])
end
end)

You might also like