Here’s my current script. It only gives a hit box to only one player.
local Players = game:GetService("Players")
local function weld()
for i,v in pairs(Players:GetChildren()) do
v.CharacterAdded:Wait()
local hitbox = script.HitBox:Clone()
local char = v.Character
local root = char.HumanoidRootPart
local head = char.Head
hitbox.CFrame = head.CFrame
hitbox.Parent = char
local weld = Instance.new("WeldConstraint")
weld.Part0 = root
weld.Part1 = hitbox
weld.Parent = hitbox
end
end
Players.PlayerAdded:Connect(function()
weld()
end)