Pastefi mark
Hub v2
/b71dcba2
Paste view
NONE PUBLIC 35 views
b71dcba2
2026-01-09 14:33:23
-- HBH HUBX5
local P=game.Players.LocalPlayer
local RS=game:GetService("RunService")
local UIS=game:GetService("UserInputService")
local C
if P.Character then C=P.Character end
P.CharacterAdded:Connect(function(c) C=c end)

-- UI
local g=Instance.new("ScreenGui",game.CoreGui)
local f=Instance.new("Frame",g)
f.Size=UDim2.fromScale(0.28,0.3)
f.Position=UDim2.fromScale(0.36,0.25)
f.BackgroundColor3=Color3.fromRGB(30,30,30)
f.BorderSizePixel=0

local title=Instance.new("TextLabel",f)
title.Size=UDim2.new(1,0,0,40)
title.Text="HBH HUBX5"
title.TextColor3=Color3.new(1,1,1)
title.BackgroundTransparency=1
title.TextScaled=true

local ui=Instance.new("UIListLayout",f)
ui.Padding=UDim.new(0,8)
ui.HorizontalAlignment=Center
ui.VerticalAlignment=Top

-- Push settings
local pushOn=false
local dist=25

local pushBtn=Instance.new("TextButton",f)
pushBtn.Size=UDim2.new(0.9,0,0,40)
pushBtn.Text="GLASS OFF"
pushBtn.BackgroundColor3=Color3.fromRGB(70,70,70)
pushBtn.TextColor3=Color3.new(1,1,1)

local dFrame=Instance.new("Frame",f)
dFrame.Size=UDim2.new(0.9,0,0,35)
dFrame.BackgroundTransparency=1

local minus=Instance.new("TextButton",dFrame)
minus.Size=UDim2.new(0.2,0,1,0)
minus.Text="-"
minus.BackgroundColor3=Color3.fromRGB(70,70,70)
minus.TextColor3=Color3.new(1,1,1)

local dText=Instance.new("TextLabel",dFrame)
dText.Position=UDim2.new(0.2,0,0,0)
dText.Size=UDim2.new(0.6,0,1,0)
dText.Text="DIST : 25"
dText.BackgroundTransparency=1
dText.TextColor3=Color3.new(1,1,1)

local plus=Instance.new("TextButton",dFrame)
plus.Position=UDim2.new(0.8,0,0,0)
plus.Size=UDim2.new(0.2,0,1,0)
plus.Text="+"
plus.BackgroundColor3=Color3.fromRGB(70,70,70)
plus.TextColor3=Color3.new(1,1,1)

pushBtn.MouseButton1Click:Connect(function()
	pushOn=not pushOn
	pushBtn.Text=pushOn and "GLASS ON" or "GLASS OFF"
end)
minus.MouseButton1Click:Connect(function()
	dist=math.max(5,dist-5)
	dText.Text="DIST : "..dist
end)
plus.MouseButton1Click:Connect(function()
	dist=math.min(100,dist+5)
	dText.Text="DIST : "..dist
end)

-- Kill tool
local killBtn=Instance.new("TextButton",f)
killBtn.Size=UDim2.new(0.9,0,0,40)
killBtn.Text="GET KILL TOOL"
killBtn.BackgroundColor3=Color3.fromRGB(70,70,70)
killBtn.TextColor3=Color3.new(1,1,1)

local tool
killBtn.MouseButton1Click:Connect(function()
	if tool then tool:Destroy() end
	tool=Instance.new("Tool")
	tool.Name="HBH_KILL"
	tool.RequiresHandle=false
	tool.Parent=P.Backpack
end)

-- Push mobs
RS.Heartbeat:Connect(function()
	if not pushOn or not C then return end
	local hrp=C:FindFirstChild("HumanoidRootPart")
	if not hrp then return end
	for _,m in ipairs(workspace:GetDescendants()) do
		if m:IsA("Model") and m:FindFirstChild("Humanoid")
		and m:FindFirstChild("HumanoidRootPart")
		and not game.Players:GetPlayerFromCharacter(m) then
			local dir=(m.HumanoidRootPart.Position-hrp.Position).Unit
			m.HumanoidRootPart.CFrame =
			m.HumanoidRootPart.CFrame + dir*dist
		end
	end
end)

-- Kill on tap
UIS.InputBegan:Connect(function(i,gp)
	if gp or not tool or tool.Parent~=C then return end
	if i.UserInputType~=Enum.UserInputType.Touch
	and i.UserInputType~=Enum.UserInputType.MouseButton1 then return end
	local hrp=C and C:FindFirstChild("HumanoidRootPart")
	if not hrp then return end
	for _,m in ipairs(workspace:GetDescendants()) do
		if m:IsA("Model") and m:FindFirstChild("Humanoid")
		and m:FindFirstChild("HumanoidRootPart")
		and not game.Players:GetPlayerFromCharacter(m) then
			if (m.HumanoidRootPart.Position-hrp.Position).Magnitude<12 then
				m.Humanoid.Health=0
			end
		end
	end
end)

Comments (0)

Log in to leave a comment.

No comments yet.