Trying to fix a error

UsingMove is not a valid member of Model “Workspace.Dummy”

local connection
	connection = hitbox.Touched:Connect(function(hitpart)
		if not hitpart:IsDescendantOf(Character) then
			if hitpart.Parent:FindFirstChild("Humanoid") then
				local Enemy = hitpart.Parent
				
				Enemy.Humanoid:TakeDamage(DMG)
				connection:Disconnect()
				hitbox:Destroy()
				--	Enemy.Humanoid:LoadAnimation(script.HitAnim):Play()
				Enemy.Humanoid.WalkSpeed = 2
				Enemy.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
				Enemy.UsingMove = true

image

1 Like

There may be other issues at play, but perhaps this will fix it:

Enemy:WaitForChild('UsingMove').Value = true
2 Likes