Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script creates a universal hitbox expander for all players in the game in Roblox.
- -- Custom function to expand hitbox for all players
- local function expandHitbox()
- for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
- local character = player.Character
- if character then
- for _, part in ipairs(character:GetDescendants()) do
- if part:IsA("BasePart") and part.CanCollide then
- -- Expand hitbox size and set opacity
- part.Size = part.Size * 1.5 -- Adjust hitbox size multiplier as needed
- part.Transparency = 0.8 -- Set opacity to 20% (0.8 = 80% transparent)
- part.Color = Color3.fromRGB(0, 0, 255) -- Set color to blue
- end
- end
- end
- end
- end
- -- Run hitbox expansion initially
- expandHitbox()
- -- Run hitbox expansion for new players
- game:GetService("Players").PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(character)
- expandHitbox()
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment