Pastebin
-- Gui to Lua
-- Version: 3.2
-- Instances:
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TextLabel = Instance.new("TextLabel")
local UICorner = Instance.new("UICorner")
local TextButton = Instance.new("TextButton")
local TextLabel_2 = Instance.new("TextLabel")
local TextLabel_3 = Instance.new("TextLabel")
local TextButton_2 = Instance.new("TextButton")
local TextLabel_4 = Instance.new("TextLabel")
local TextButton_3 = Instance.new("TextButton")
--Properties:
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(102, 102, 102)
Frame.Position = UDim2.new(0.101434425, 0, 0.105939008, 0)
Frame.Size = UDim2.new(0, 196, 0, 232)
TextLabel.Parent = Frame
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.Size = UDim2.new(0, 196, 0, 50)
TextLabel.Font = Enum.Font.GothamBold
TextLabel.Text = "COBRA HUB"
TextLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
TextLabel.TextScaled = true
TextLabel.TextSize = 14.000
TextLabel.TextWrapped = true
UICorner.Parent = Frame
TextButton.Parent = Frame
TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton.BackgroundTransparency = 1.000
TextButton.Position = UDim2.new(0.596938789, 0, 0.241379306, 0)
TextButton.Size = UDim2.new(0, 79, 0, 35)
TextButton.Font = Enum.Font.SourceSans
TextButton.Text = "Off"
TextButton.TextColor3 = Color3.fromRGB(255, 0, 0)
TextButton.TextScaled = true
TextButton.TextSize = 14.000
TextButton.TextWrapped = true
TextLabel_2.Parent = Frame
TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_2.BackgroundTransparency = 1.000
TextLabel_2.Position = UDim2.new(0, 0, 0.241379306, 0)
TextLabel_2.Size = UDim2.new(0, 117, 0, 35)
TextLabel_2.Font = Enum.Font.SourceSans
TextLabel_2.Text = "Silent aim :"
TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_2.TextScaled = true
TextLabel_2.TextSize = 14.000
TextLabel_2.TextWrapped = true
TextLabel_3.Parent = Frame
TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_3.BackgroundTransparency = 1.000
TextLabel_3.Position = UDim2.new(0, 0, 0.422413766, 0)
TextLabel_3.Size = UDim2.new(0, 117, 0, 35)
TextLabel_3.Font = Enum.Font.SourceSans
TextLabel_3.Text = "Aimbot : "
TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_3.TextScaled = true
TextLabel_3.TextSize = 14.000
TextLabel_3.TextWrapped = true
TextButton_2.Parent = Frame
TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton_2.BackgroundTransparency = 1.000
TextButton_2.Position = UDim2.new(0.596938789, 0, 0.422413766, 0)
TextButton_2.Size = UDim2.new(0, 79, 0, 35)
TextButton_2.Font = Enum.Font.SourceSans
TextButton_2.Text = "Off"
TextButton_2.TextColor3 = Color3.fromRGB(255, 0, 0)
TextButton_2.TextScaled = true
TextButton_2.TextSize = 14.000
TextButton_2.TextWrapped = true
TextLabel_4.Parent = Frame
TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_4.BackgroundTransparency = 1.000
TextLabel_4.Position = UDim2.new(0, 0, 0.625, 0)
TextLabel_4.Size = UDim2.new(0, 117, 0, 35)
TextLabel_4.Font = Enum.Font.SourceSans
TextLabel_4.Text = "ESP : "
TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_4.TextScaled = true
TextLabel_4.TextSize = 14.000
TextLabel_4.TextWrapped = true
TextButton_3.Parent = Frame
TextButton_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton_3.BackgroundTransparency = 1.000
TextButton_3.Position = UDim2.new(0.596938789, 0, 0.625, 0)
TextButton_3.Size = UDim2.new(0, 79, 0, 35)
TextButton_3.Font = Enum.Font.SourceSans
TextButton_3.Text = "Off"
TextButton_3.TextColor3 = Color3.fromRGB(255, 0, 0)
TextButton_3.TextScaled = true
TextButton_3.TextSize = 14.000
TextButton_3.TextWrapped = true
-- Scripts:
local function ZUZJPYR_fake_script() -- TextButton.LocalScript
local script = Instance.new('LocalScript', TextButton)
_G.silentaim = false
script.Parent.MouseButton1Click:Connect(function()
if _G.silentaim == false then
_G.silentaim = true
script.Parent.Text = "On"
script.Parent.TextColor3 = Color3.fromRGB(0, 255, 0)
else
_G.silentaim = false
script.Parent.Text = "Off"
script.Parent.TextColor3 = Color3.fromRGB(255, 0, 0)
end
end)
--> VARIABLES <--
local plrs = game:GetService("Players")
local plr = plrs.LocalPlayer
local mouse = plr:GetMouse()
local camera = game:GetService("Workspace").CurrentCamera
--> FUNCTIONS <--
function notBehindWall(target)
local ray = Ray.new(plr.Character.Head.Position, (target.Position - plr.Character.Head.Position).Unit * 300)
local part, position = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray, {plr.Character}, false, true)
if part then
local humanoid = part.Parent:FindFirstChildOfClass("Humanoid")
if not humanoid then
humanoid = part.Parent.Parent:FindFirstChildOfClass("Humanoid")
end
if humanoid and target and humanoid.Parent == target.Parent then
local pos, visible = camera:WorldToScreenPoint(target.Position)
if visible then
return true
end
end
end
end
function getPlayerClosestToMouse()
local target = nil
local maxDist = 100
for _,v in pairs(plrs:GetPlayers()) do
if v.Character then
if v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.TeamColor ~= plr.TeamColor then
local pos, vis = camera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
local dist = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(pos.X, pos.Y)).magnitude
if dist < maxDist and vis then
local torsoPos = camera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
local torsoDist = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(torsoPos.X, torsoPos.Y)).magnitude
local headPos = camera:WorldToViewportPoint(v.Character.Head.Position)
local headDist = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(headPos.X, headPos.Y)).magnitude
if torsoDist > headDist then
if notBehindWall(v.Character.Head) then
target = v.Character.Head
end
else
if notBehindWall(v.Character.HumanoidRootPart) then
target = v.Character.HumanoidRootPart
end
end
maxDist = dist
end
end
end
end
return target
end
--> Hooking to the remote <--
local gmt = getrawmetatable(game)
setreadonly(gmt, false)
local oldNamecall = gmt.__namecall
gmt.__namecall = newcclosure(function(self, ...)
local Args = {...}
local method = getnamecallmethod()
if tostring(self) == "HitPart" and tostring(method) == "FireServer" then
Args[1] = getPlayerClosestToMouse()
Args[2] = getPlayerClosestToMouse().Position
return self.FireServer(self, unpack(Args))
end
return oldNamecall(self, ...)
end)
end
coroutine.wrap(ZUZJPYR_fake_script)()
local function SIBC_fake_script() -- TextButton_2.LocalScript
local script = Instance.new('LocalScript', TextButton_2)
_G.aimbot = false
local camera = game.Workspace.CurrentCamera
local localPlayer = game:GetService("Players").LocalPlayer
local dist = math.huge
local target = nil
script.Parent.MouseButton1Click:Connect(function()
if _G.aimbot == false then
_G.aimbot = true
script.Parent.TextColor3 = Color3.fromRGB(0, 255, 0)
script.Parent.Text = "On"
local function closetplayer()
for i, v in pairs(game:GetService("Players"):GetPlayers()) do
if v.Name ~= localPlayer.Name then
if v.Character and v.Character:FindFirstChild("Head") and v.Character.Humanoid.Health > 0 and v.Character:FindFirstChild("Head") and v.TeamColor ~= localPlayer.TeamColor then
local magnitude = (v.Character.HumanoidRootPart.Position - localPlayer.Character.HumanoidRootPart.Position).magnitude
if magnitude < dist then
target = v
dist = magnitude
end
end
end
return target
end
local camera = game.Workspace.CurrentCamera
local UIS = game:GetService("UserInputService")
local aim = false
game:GetService("RunService").RenderStepped:Connect(function()
if aim then
camera.CFrame = CFrame.new(camera.CFrame.Position,player().Character.Head.Position)
end
end)
UIS.InputBegan:Connect(function(inp)
if inp.UserInputType == Enum.UserInputType.MouseButton2 then
aim = true
end
end)
UIS.InputEnded:Connect(function(inp)
if inp.UserInputType == Enum.UserInputType.MouseButton2 then
aim = false
end
end)
end
end
end)
end
coroutine.wrap(SIBC_fake_script)()
local function MLSK_fake_script() -- TextButton_3.LocalScript
local script = Instance.new('LocalScript', TextButton_3)
_G.chams = false
local player = game:GetService("Players")
script.Parent.MouseButton1Click:Connect(function()
if _G.chams == false then
_G.chams = true
script.Parent.Text = "On"
script.Parent.TextColor3 = Color3.fromRGB(0, 255, 0)
function CreateSG(name,parent,face)
local SurfaceGui = Instance.new("SurfaceGui",parent)
SurfaceGui.Parent = parent
SurfaceGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
SurfaceGui.Face = Enum.NormalId[face]
SurfaceGui.LightInfluence = 0
SurfaceGui.ResetOnSpawn = false
SurfaceGui.Name = name
SurfaceGui.AlwaysOnTop = true
local Frame = Instance.new("Frame",SurfaceGui)
Frame.BackgroundColor3 = Color3.fromRGB(85, 170, 255)
Frame.Size = UDim2.new(1,0,1,0)
end
while wait(1) do
for i,v in pairs (game:GetService("Players"):GetPlayers()) do
if v ~= game:GetService("Players").LocalPlayer and v.Character ~= nil and v.Character:FindFirstChild("Head") and v.Character.Head:FindFirstChild("cham") == nil then
for i,v in pairs (v.Character:GetChildren()) do
if v:IsA("MeshPart") or v.Name == "Head" then
CreateSG("cham",v,"Back")
CreateSG("cham",v,"Front")
CreateSG("cham",v,"Left")
CreateSG("cham",v,"Right")
CreateSG("cham",v,"Right")
CreateSG("cham",v,"Top")
CreateSG("cham",v,"Bottom")
end
end
end
end
end
end
end)
end
coroutine.wrap(MLSK_fake_script)()
Select all text above, copy it, then paste into your executor.