Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Documentation:
- Todo:
- --]]
- local player = game:GetService("Players").LocalPlayer
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local UserInput = game:GetService("UserInputService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local CollectionService = game:GetService("CollectionService")
- local UserInputService = game:GetService("UserInputService")
- local StarterGui = game:GetService("StarterGui")
- local UI = {}
- local Whitelist = {}
- local Webhook = {}
- local Hack = {}
- local Util = {}
- local Client = {}
- ----------------------------|| SETUP ||----------------------------
- --for i,v in pairs(getreg()) do
- -- if type(v) == "function" then
- -- for a,b in pairs(debug.getupvalues(v)) do
- --
- -- end
- -- end
- --end
- -------------------------------------------------------------------
- do --// Gui functions
- local self = UI
- self.base = Instance.new("ScreenGui",RunService:IsStudio() and player.PlayerGui or game.CoreGui)
- self.menus = {}
- function self:AddMenu(name)
- local frame = Instance.new("Frame",self.base)
- local title = Instance.new("TextLabel",self.base)
- frame.Name = name
- frame.BackgroundColor3 = Color3.fromRGB(58,58,58)
- frame.BackgroundTransparency = 0.1
- frame.BorderSizePixel = 0
- frame.Position = UDim2.new(0.22,(236 * #self.menus) + 20, 0, 70)
- frame.Size = UDim2.new(0, 210, 0, 0)
- title.Name = name.."_title"
- title.BackgroundColor3 = Color3.fromRGB(38,38,38)
- title.BackgroundTransparency = 0.1
- title.BorderSizePixel = 0
- title.Position = UDim2.new(0.22, (236 * #self.menus) + 20, 0, 15)
- title.Size = UDim2.new(0, 210, 0, 45)
- title.Font = Enum.Font.SourceSansBold
- title.Text = name
- title.TextColor3 = Color3.new(1, 1, 1)
- title.TextSize = 25
- self.menus[#self.menus + 1] = {name = name,frame = frame,buttons = {}}
- frame.ChildAdded:Connect(function(obj)
- frame.Size = frame.Size + UDim2.new(0,0,0,obj.Size.Y.Offset)
- end)
- end
- local color = false
- function self:AddButton(frame,name,text,toggle,bind,onclick)
- if not self.base:FindFirstChild(frame) then error("Frame does not exist") end
- local _tog
- local _bind
- local btn = Instance.new("TextButton",self.base[frame])
- btn.Size = UDim2.new(1,0,0,25)
- btn.Position = UDim2.new(0,0,0,(#self.base[frame]:GetChildren() - 1) * 25)
- btn.BackgroundColor3 = color and Color3.fromRGB(58,58,58) or Color3.fromRGB(38,38,38);color = not color
- btn.BorderSizePixel = 0
- btn.Name = name
- btn.Text = text
- btn.Font = Enum.Font.SourceSansLight
- btn.TextSize = 20
- btn.TextColor3 = Color3.new(1,1,1)
- if toggle then
- local tog = Instance.new("TextLabel",btn)
- tog.Size = UDim2.new(0.15,0,1,0)
- tog.AnchorPoint = Vector2.new(1,0)
- tog.Position = UDim2.new(1,0,0,0)
- tog.BackgroundTransparency = 1
- tog.Font = Enum.Font.SourceSansSemibold
- tog.TextColor3 = Color3.new(1,0,0)
- tog.Text = "OFF"
- tog.TextSize = 15
- _tog = tog
- end
- if bind then
- if Client[bind] ~= nil then
- _bind = true
- end
- end
- local toggled = false
- btn.MouseButton1Click:Connect(function()
- if _tog then
- toggled = not toggled
- _tog.Text = toggled and "ON" or "OFF"
- _tog.TextColor3 = toggled and Color3.new(0,1,0) or Color3.new(1,0,0)
- if _bind then
- Client[bind] = toggled
- end
- else
- if _bind then
- Client[bind]()
- end
- end
- end)
- end
- end
- do -- Client
- local self = Client
- end
- UI:AddMenu("Cheats")
- UI:AddMenu("Settings")
- UI:AddButton("Cheats","Aimbot","Aimbot",true,"Aimbot")
- RunService.RenderStepped:Connect(function()
- end)
Advertisement
Add Comment
Please, Sign In to add comment