wait(3)
for i = 1,40,1 do
Meteor = Instance.new("Part")
Meteor.Size = Vector3.new (3,3,3)
Meteor.Material = "Neon"
Meteor.Color = Color3.new (180, 110, 255)
Meteor.CFrame = script.Parent.UpperTorso.CFrame
Meteor.CanCollide = false
Meteor.Parent = game.Workspace
local mesh = Instance.new("SpecialMesh")
mesh.MeshType =("Sphere")
mesh.Parent = Meteor
local bv = Instance.new ("BodyVelocity")
bv.Parent = Meteor
bv.Velocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))
game:GetService("Debris"):AddItem(Meteor, 5)
local ten = true
script.Parent.UpperTorso.LSSJBarrier.BARRIER.Enabled = true
script.Parent.Humanoid.WalkSpeed = 0
local char = script.Parent --the npc
local hum = char:WaitForChild("Humanoid") --the npc's humanoid
local animation = hum:LoadAnimation(script.Animation)
local HP = script.Parent.Humanoid.WalkSpeed
animation:Play()
wait(.1)
animation:Stop()
script.Parent.Humanoid.WalkSpeed = 8
script.Parent.UpperTorso.LSSJBarrier.BARRIER.Enabled = false
Meteor.Touched:connect(function(hit)
local HitAble = false
if hit:IsDescendantOf(script.Parent) then return end
if not HitAble then return end
local root = hit.Parent:FindFirstChild("HumanoidRootPart")
if root and not root.Anchored then
local myRoot = script.Parent:FindFirstChild("HumanoidRootPart")
if myRoot then
local delta = root.Position - myRoot.Position
if not ten then return end
ten = false
local human = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
if human ~= nil then
spawn(function()
spawn(function()
for i, v in pairs(root) do
local HumanoidsHit = {}
while Meteor and Meteor.Parent do
local bv = Instance.new("BodyVelocity")
bv.maxForce = Vector3.new(1e990, 1e990, 1e990)
bv.velocity = delta.unit * 180
bv.Parent = v
if not bv.Parent == root then
print("no.")
end
game:GetService("Debris"):AddItem(bv, 2.25)
end
end
end)
end)
end
end
end
end)
end
been trying this for a while now, changed the scripts around a bit but to no avail and i have no clue why, the script runs fine, doesn't break but the bv.parent = v doesnt work. anyone see anything wrong with this?

1 comment
I have a hunch that it could have something to do with you using i as a numbering variable for the for i = 1, 40 loop and the for pairs loop. Try each to make sure they aren't duplicates and see if that changes results.