--[[ WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk! ]] -- NPC Humanoid Hitbox Size Controller by Slider (Excludes Player, with Show/Hide Feature) -- Settings local minSize = 1 -- Minimum humanoid size (0 on slider) local maxSize = 100 -- Maximum humanoid size (100 on slider) local defaultSize = 15 -- Default humanoid size local transparency = 0.5 -- Transparency of the humanoid's hitbox -- Player and Services local player = game:GetService("Players").LocalPlayer local humanoidCharacters = {} -- List to hold NPCs with humanoids -- Function to find all NPCs with Humanoids (excluding the player) local function findAllHumanoids() for _, npc in pairs(game.Workspace:GetChildren()) do if npc:IsA("Model") and npc:FindFirstChild("HumanoidRootPart") and npc:FindFirstChild("Humanoid") and npc ~= player.Character then table.insert(humanoidCharacters, npc) end end end -- Create the GUI local screenGui = Instance.new("ScreenGui") screenGui.Parent = player:WaitForChild("PlayerGui") -- Create Slider Frame (hidden by default) local sliderFrame = Instance.new("Frame") sliderFrame.Size = UDim2.new(0, 300, 0, 50) sliderFrame.Position = UDim2.new(0.5, -150, 0.9, 0) -- Centered at the bottom of the screen sliderFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) sliderFrame.Visible = false -- Hidden initially sliderFrame.Parent = screenGui -- Create Slider Button local slider = Instance.new("TextButton") slider.Size = UDim2.new(0, 20, 1, 0) slider.Position = UDim2.new(0.5, -10, 0, 0) slider.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8) slider.Parent = sliderFrame slider.Text = "" -- Create Label to display humanoid hitbox size local sizeLabel = Instance.new("TextLabel") sizeLabel.Size = UDim2.new(1, 0, 1, 0) sizeLabel.Position = UDim2.new(0, 0, -1.2, 0) sizeLabel.BackgroundTransparency = 1 sizeLabel.Text = "Humanoid Size: " .. tostring(defaultSize) sizeLabel.TextScaled = true sizeLabel.Parent = sliderFrame -- Create Show/Hide Button local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0, 50, 0, 50) -- Small size toggleButton.Position = UDim2.new(1, -60, 1, -60) -- Bottom-right corner toggleButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) toggleButton.TextColor3 = Color3.new(1, 1, 1) toggleButton.Text = "Show" toggleButton.Parent = screenGui -- Variable to track dragging local dragging = false -- Function to update the size of all humanoids (excluding the player) local function updateHumanoidSizes(size) for _, npc in pairs(humanoidCharacters) do local humanoidRootPart = npc:FindFirstChild("HumanoidRootPart") if humanoidRootPart then humanoidRootPart.Size = Vector3.new(size, size, size) humanoidRootPart.Transparency = transparency humanoidRootPart.CanCollide = false -- Optional, make the hitbox non-collidable end end end -- Make the slider draggable slider.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true end end) slider.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) -- Update slider and humanoid size while dragging game:GetService("UserInputService").InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then local relativePos = (input.Position.X - sliderFrame.AbsolutePosition.X) / sliderFrame.AbsoluteSize.X relativePos = math.clamp(relativePos, 0, 1) slider.Position = UDim2.new(relativePos, -10, 0, 0) -- Calculate humanoid size from slider value (0 to 100) local newHumanoidSize = math.floor(relativePos * maxSize) sizeLabel.Text = "Humanoid Size: " .. tostring(newHumanoidSize) -- Update the size of all humanoids (excluding the player) updateHumanoidSizes(newHumanoidSize) end end) -- Show/Hide button functionality toggleButton.MouseButton1Click:Connect(function() if sliderFrame.Visible then sliderFrame.Visible = false toggleButton.Text = "Show" else sliderFrame.Visible = true toggleButton.Text = "Hide" end end) -- Call the function to find all humanoids in the game (excluding the player) findAllHumanoids() -- Set the default size of humanoids updateHumanoidSizes(defaultSize)
--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
-- NPC Humanoid Hitbox Size Controller by Slider (Excludes Player, with Show/Hide Feature)
-- Settings
local minSize = 1 -- Minimum humanoid size (0 on slider)
local maxSize = 100 -- Maximum humanoid size (100 on slider)
local defaultSize = 15 -- Default humanoid size
local transparency = 0.5 -- Transparency of the humanoid's hitbox
-- Player and Services
local player = game:GetService("Players").LocalPlayer
local humanoidCharacters = {} -- List to hold NPCs with humanoids
-- Function to find all NPCs with Humanoids (excluding the player)
local function findAllHumanoids()
for _, npc in pairs(game.Workspace:GetChildren()) do
if npc:IsA("Model") and npc:FindFirstChild("HumanoidRootPart") and npc:FindFirstChild("Humanoid") and npc ~= player.Character then
table.insert(humanoidCharacters, npc)
end
end
end
-- Create the GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = player:WaitForChild("PlayerGui")
-- Create Slider Frame (hidden by default)
local sliderFrame = Instance.new("Frame")
sliderFrame.Size = UDim2.new(0, 300, 0, 50)
sliderFrame.Position = UDim2.new(0.5, -150, 0.9, 0) -- Centered at the bottom of the screen
sliderFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
sliderFrame.Visible = false -- Hidden initially
sliderFrame.Parent = screenGui
-- Create Slider Button
local slider = Instance.new("TextButton")
slider.Size = UDim2.new(0, 20, 1, 0)
slider.Position = UDim2.new(0.5, -10, 0, 0)
slider.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
slider.Parent = sliderFrame
slider.Text = ""
-- Create Label to display humanoid hitbox size
local sizeLabel = Instance.new("TextLabel")
sizeLabel.Size = UDim2.new(1, 0, 1, 0)
sizeLabel.Position = UDim2.new(0, 0, -1.2, 0)
sizeLabel.BackgroundTransparency = 1
sizeLabel.Text = "Humanoid Size: " .. tostring(defaultSize)
sizeLabel.TextScaled = true
sizeLabel.Parent = sliderFrame
-- Create Show/Hide Button
local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(0, 50, 0, 50) -- Small size
toggleButton.Position = UDim2.new(1, -60, 1, -60) -- Bottom-right corner
toggleButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
toggleButton.TextColor3 = Color3.new(1, 1, 1)
toggleButton.Text = "Show"
toggleButton.Parent = screenGui
-- Variable to track dragging
local dragging = false
-- Function to update the size of all humanoids (excluding the player)
local function updateHumanoidSizes(size)
for _, npc in pairs(humanoidCharacters) do
local humanoidRootPart = npc:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
humanoidRootPart.Size = Vector3.new(size, size, size)
humanoidRootPart.Transparency = transparency
humanoidRootPart.CanCollide = false -- Optional, make the hitbox non-collidable
end
end
end
-- Make the slider draggable
slider.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
end
end)
slider.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)
-- Update slider and humanoid size while dragging
game:GetService("UserInputService").InputChanged:Connect(function(input)
if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
local relativePos = (input.Position.X - sliderFrame.AbsolutePosition.X) / sliderFrame.AbsoluteSize.X
relativePos = math.clamp(relativePos, 0, 1)
slider.Position = UDim2.new(relativePos, -10, 0, 0)
-- Calculate humanoid size from slider value (0 to 100)
local newHumanoidSize = math.floor(relativePos * maxSize)
sizeLabel.Text = "Humanoid Size: " .. tostring(newHumanoidSize)
-- Update the size of all humanoids (excluding the player)
updateHumanoidSizes(newHumanoidSize)
end
end)
-- Show/Hide button functionality
toggleButton.MouseButton1Click:Connect(function()
if sliderFrame.Visible then
sliderFrame.Visible = false
toggleButton.Text = "Show"
else
sliderFrame.Visible = true
toggleButton.Text = "Hide"
end
end)
-- Call the function to find all humanoids in the game (excluding the player)
findAllHumanoids()
-- Set the default size of humanoids
updateHumanoidSizes(defaultSize)
Hehe
Where do I have to copy from? or is it all?
no work bro
work?
nothing happen when i execute it
also show the real script
Not even working
Bro can you give me the full link because every time I enter it sends me to another place
Thats ai, but okay.
Game?
Please name the map