Forum > Scripts >

Could someone update this script for me? (adding team-check to hitbox expander)

New Reply

Posts: 4

Threads: 4

Joined: Mar, 2026

Reputation: 0

Posted

Everything works fine for me, I just need teamcheck, thank you in advance
Here's the script:

 

_G.HeadSize = 10
_G.Disabled = true
 
game:GetService('RunService').RenderStepped:connect(function()
if _G.Disabled then
for i,v in next, game:GetService('Players'):GetPlayers() do
if v.Name ~= game:GetService('Players').LocalPlayer.Name then
pcall(function()
v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
v.Character.HumanoidRootPart.Transparency = 0.95
v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really blue")
v.Character.HumanoidRootPart.Material = "Neon"
v.Character.HumanoidRootPart.CanCollide = false
end)
end
end
end
end)
  • 0

  • Comment

Tester999

Tester999

Posts: 32

Threads: 0

Joined: Dec, 2024

Reputation: 0

Replied

_G.HeadSize = 10
_G.Disabled = true
 
game:GetService('RunService').RenderStepped:connect(function()
if _G.Disabled then
for i,v in next, game:GetService('Players'):GetPlayers() do
--Your Team Name Check Here
if v.Name ~= game:GetService('Players').LocalPlayer.Name and v.Team.Name == "YourTeamName" then
pcall(function()
v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
v.Character.HumanoidRootPart.Transparency = 0.95
v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really blue")
v.Character.HumanoidRootPart.Material = "Neon"
v.Character.HumanoidRootPart.CanCollide = false
end)
end
end
end
end)
  • 0

  • Comment

● Cheat Developer 

● Game Designer

● Programmer 

YourBot

YourBot

Posts: 34

Threads: 0

Joined: Jun, 2023

Reputation: 1

Replied

Added TeamCheck as you requested.

_G.HeadSize = 10
_G.Disabled = true

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

game:GetService('RunService').RenderStepped:Connect(function()
    if _G.Disabled then
        for _, v in ipairs(Players:GetPlayers()) do
            if v ~= LocalPlayer then
                if v.Team ~= LocalPlayer.Team then
                    pcall(function()
                        v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize, _G.HeadSize, _G.HeadSize)
                        v.Character.HumanoidRootPart.Transparency = 0.95
                        v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really blue")
                        v.Character.HumanoidRootPart.Material = Enum.Material.Neon
                        v.Character.HumanoidRootPart.CanCollide = false
                    end)
                end
            end
        end
    end
end)
  • 0

  • Comment

I Help People, Ask me.

Login to unlock the reply editor

Add your reply

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )