Hello, im trying to make a hitbox that follow the player humanoid root part but it just appears on the map and doesnt moves. Could someone tell me why? I welded it good too.
script.Parent.OnServerEvent:Connect(function(player)
--
local c = game.ReplicatedStorage.Hitboxes.HellishDash:Clone()
c.Parent = workspace.hitboxes
local weld = Instance.new("WeldConstraint")
weld.Part0 = c
weld.Part1 = player.Character.Torso
c.Touched:Connect(function(hit)
if hit.Name ~= player.Name then
print("ehehe")
end
end)
wait(2)
c:Destroy()
end)