Hitbox wont follow player

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)
2 Likes

Also this is in a script of a remote event in a tool

1 Like

Nevermind figured it out!!!

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.