Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---press "M" to active the head hitbox also you can change Keycode of this script if you want
- ---you can modify or edit or make this script better no problem you can
- ---This script was made by "Mawin_CK"
- ---WARNING don't change anything about head hitbox value or head hitbox script or else the script will not work
- ---this script work on almost all game
- ---dont active or trigger Script rapidly or else is will cause error or bug or glitch or lag!
- ---this script only work on classic head and don't work on some kind of invisible head or invisible head or realistic head
- local player = game.Players.LocalPlayer
- local service = game:GetService("Players")
- local isResizing = false
- function resizeHeadHitbox()
- for _, otherPlayer in ipairs(service:GetPlayers()) do
- if otherPlayer ~= player then
- local character = otherPlayer.Character
- if character then
- local head = character:FindFirstChild("Head")
- if head then
- -- Increase head size
- head.Size = Vector3.new(5, 5, 5)
- -- Decrease transparency
- head.Transparency = 0.5
- end
- end
- end
- end
- end
- function resetHeadHitbox()
- for _, otherPlayer in ipairs(service:GetPlayers()) do
- local character = otherPlayer.Character
- if character then
- local head = character:FindFirstChild("Head")
- if head then
- -- Reset head size
- head.Size = Vector3.new(1, 1, 1)
- -- Reset transparency
- head.Transparency = 0
- end
- end
- end
- end
- game:GetService("Players").PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(character)
- if isResizing then
- -- Wait a second before resizing head to ensure character has fully loaded
- wait(0.1)
- resizeHeadHitbox()
- end
- end)
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.M then
- isResizing = not isResizing -- Toggle resizing
- if isResizing then
- resizeHeadHitbox()
- else
- resetHeadHitbox()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement