(string expected, got Instance)
We can’t help you without the code.
local Hitbox = script.Hitbox:Clone()
Hitbox.Parent = game.Workspace
Hitbox.CFrame = char.PrimaryPart.CFrame * CFrame.new(0,0,Hitbox.Size.Z/2 * -1)
Debris:AddItem(Hitbox,.3)
local Connection
Connection = Hitbox.Touched:Connect(function(hitpart)
if not hitpart:IsDescendantOf(char) then
if hitpart.Parent:FindFirstChild("Humanoid") then
local enemy = hitpart.Parent
if (table.find(ignorelist,enemy) == nil) then
table.insert(ignorelist,enemy)
Connection:Disconnect()
char.Humanoid.WalkSpeed = 0
char.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
Player.Backpack.Value.UsingMove.Value = true
enemy.Humanoid.WalkSpeed = 0
enemy.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
-- enemy.Humanoid:LoadAnimation(hitanim):Play()
local UsingMoves = Instance.new("BoolValue")
UsingMoves.Name = UsingMoves
UsingMoves.Parent = enemy
Maybe show us line 36? That’s the error.
You forgot to set UsingMoves under paragraphs in line 36
UsingMoves.Name = “UsingMoves”
Would be correct.