Good script I think
Views: 17Executions: 13

Good script I think

  • Keyless
  • Mobile friendly

Advertisement

About this script

-- ☠ TOXIC HUB V2

local Players = game:GetService("Players")

local UIS = game:GetService("UserInputService")

local player = Players.LocalPlayer

local gui = Instance.new("ScreenGui")

gui.Name = "TOXIC_HUB"

gui.ResetOnSpawn = false

gui.Parent = player:WaitForChild("PlayerGui")

local purple = Color3.fromRGB(160, 40, 255)

local dark = Color3.fromRGB(18, 12, 28)

local infiniteJump = false

local inventoryLooking = false

local jumpConnection

local inventoryGui

local function make(class, props, parent)

local obj = Instance.new(class)

for k, v in pairs(props) do

obj[k] = v

end

obj.Parent = parent

return obj

end

local open = make("TextButton", {

Size = UDim2.fromOffset(110, 40),

Position = UDim2.new(0, 15, 0.5, 0),

Text = "☠ TOXIC",

TextScaled = true,

TextColor3 = Color3.new(1, 1, 1),

BackgroundColor3 = purple,

Visible = false

}, gui)

make("UICorner", {CornerRadius = UDim.new(0, 10)}, open)

local frame = make("Frame", {

Size = UDim2.fromOffset(285, 390),

Position = UDim2.new(0.05, 0, 0.2, 0),

BackgroundColor3 = dark,

BorderSizePixel = 0

}, gui)

make("UICorner", {CornerRadius = UDim.new(0, 14)}, frame)

make("UIStroke", {Color = purple, Thickness = 2}, frame)

local title = make("TextLabel", {

Size = UDim2.new(1, -90, 0, 45),

Position = UDim2.fromOffset(12, 0),

BackgroundTransparency = 1,

Text = "☠ TOXIC HUB",

TextColor3 = Color3.new(1, 1, 1),

TextScaled = true,

Font = Enum.Font.GothamBold,

TextXAlignment = Enum.TextXAlignment.Left

}, frame)

local minimize = make("TextButton", {

Size = UDim2.fromOffset(32, 30),

Position = UDim2.new(1, -74, 0, 7),

Text = "_",

TextScaled = true,

TextColor3 = Color3.new(1, 1, 1),

BackgroundColor3 = Color3.fromRGB(70, 35, 100)

}, frame)

local close = make("TextButton", {

Size = UDim2.fromOffset(32, 30),

Position = UDim2.new(1, -37, 0, 7),

Text = "X",

TextScaled = true,

TextColor3 = Color3.new(1, 1, 1),

BackgroundColor3 = Color3.fromRGB(180, 35, 65)

}, frame)

local status = make("TextLabel", {

Size = UDim2.new(1, -20, 0, 28),

Position = UDim2.fromOffset(10, 45),

BackgroundTransparency = 1,

Text = "STATUS: READY",

TextColor3 = Color3.fromRGB(200, 150, 255),

TextScaled = true,

Font = Enum.Font.GothamBold

}, frame)

local function newButton(text, y)

local b = make("TextButton", {

Size = UDim2.new(1, -20, 0, 40),

Position = UDim2.fromOffset(10, y),

Text = text,

TextColor3 = Color3.new(1, 1, 1),

TextScaled = true,

Font = Enum.Font.GothamBold,

BackgroundColor3 = Color3.fromRGB(65, 25, 100)

}, frame)

make("UICorner", {CornerRadius = UDim.new(0, 9)}, b)

make("UIStroke", {Color = purple, Thickness = 1}, b)

return b

end

local speedButton = newButton("⚡ SPEED +10", 78)

local resetSpeed = newButton("↺ RESET SPEED (16)", 124)

local jumpButton = newButton("🦘 INFINITE JUMP: OFF", 170)

local stopJump = newButton("🛑 STOP INFINITE JUMP", 216)

local lookButton = newButton("👀 LOOK AT PLAYER INVENTORY", 262)

local stopLook = newButton("✋ STOP LOOKING AT INVENTORY", 308)

local function getHumanoid()

local char = player.Character

return char and char:FindFirstChildOfClass("Humanoid")

end

speedButton.Activated:Connect(function()

local h = getHumanoid()

if h then

h.WalkSpeed = h.WalkSpeed + 10

status.Text = "SPEED: " .. h.WalkSpeed

else

status.Text = "WAITING FOR CHARACTER"

end

end)

resetSpeed.Activated:Connect(function()

local h = getHumanoid()

if h then h.WalkSpeed = 16 end

status.Text = "SPEED RESET TO 16"

end)

local function stopInfiniteJump()

infiniteJump = false

if jumpConnection then

jumpConnection:Disconnect()

jumpConnection = nil

end

jumpButton.Text = "🦘 INFINITE JUMP: OFF"

status.Text = "INFINITE JUMP STOPPED"

end

jumpButton.Activated:Connect(function()

if infiniteJump then

stopInfiniteJump()

return

end

infiniteJump = true

jumpButton.Text = "🦘 INFINITE JUMP: ON"

status.Text = "INFINITE JUMP ENABLED"

jumpConnection = UIS.JumpRequest:Connect(function()

if infiniteJump then

local h = getHumanoid()

if h then

h:ChangeState(

Enum.HumanoidStateType.Jumping

)

end

end

end)

end)

stopJump.Activated:Connect(stopInfiniteJump)

-- Display inventory information intentionally exposed

-- by your own game's player data.

local function stopInventoryViewer()

inventoryLooking = false

if inventoryGui then

inventoryGui:Destroy()

inventoryGui = nil

end

status.Text = "INVENTORY VIEWER CLOSED"

end

lookButton.Activated:Connect(function()

stopInventoryViewer()

inventoryLooking = true

inventoryGui = make("Frame", {

Name = "InventoryViewer",

Size = UDim2.fromOffset(260, 220),

Position = UDim2.new(0.5, -130, 0.5, -110),

BackgroundColor3 = dark,

BorderSizePixel = 0

}, gui)

make("UICorner", {

CornerRadius = UDim.new(0, 12)

}, inventoryGui)

make("UIStroke", {

Color = purple,

Thickness = 2

}, inventoryGui)

make("TextLabel", {

Size = UDim2.new(1, 0, 0, 42),

BackgroundColor3 = purple,

Text = "PLAYER INVENTORY",

TextColor3 = Color3.new(1, 1, 1),

TextScaled = true,

Font = Enum.Font.GothamBold

}, inventoryGui)

make("TextLabel", {

Size = UDim2.new(1, -20, 1, -55),

Position = UDim2.fromOffset(10, 48),

BackgroundTransparency = 1,

Text = "Inventory data must be provided by your own game.",

TextWrapped = true,

TextColor3 = Color3.new(1, 1, 1),

TextScaled = true

}, inventoryGui)

status.Text = "INVENTORY VIEWER OPEN"

end)

stopLook.Activated:Connect(stopInventoryViewer)

minimize.Activated:Connect(function()

frame.Visible = false

open.Visible = true

end)

close.Activated:Connect(function()

stopInfiniteJump()

stopInventoryViewer()

frame.Visible = false

open.Visible = true

end)

open.Activated:Connect(function()

frame.Visible = true

open.Visible = false

end)

-- Drag the hub by its title

local dragging = false

local dragStart

local startPosition

title.InputBegan:Connect(function(input)

if input.UserInputType == Enum.UserInputType.MouseButton1

or input.UserInputType == Enum.UserInputType.Touch then

dragging = true

dragStart = input.Position

startPosition = frame.Position

end

end)

UIS.InputChanged:Connect(function(input)

if dragging and (

input.UserInputType == Enum.UserInputType.MouseMovement

or input.UserInputType == Enum.UserInputType.Touch

) then

local delta = input.Position - dragStart

frame.Position = UDim2.new(

startPosition.X.Scale,

startPosition.X.Offset + delta.X,

startPosition.Y.Scale,

startPosition.Y.Offset + delta.Y

)

end

end)

UIS.InputEnded:Connect(function(input)

if input.UserInputType == Enum.UserInputType.MouseButton1

or input.UserInputType == Enum.UserInputType.Touch then

dragging = false

end

end)