for i = .3,30,.3 do local HitAble = false function onTouched(part) if part:IsDescendantOf(script.Parent) then return end if not HitAble then return end local root = part.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 part = Instance.new ("Part") part.Size = Vector3.new (3,3,3) part.Material = "Neon" part.Color = Color3.new (115, 165, 74) part.CFrame = script.Parent.UpperTorso part.CanCollide = false part.Parent = game.Workspace local mesh = Instance.new ("SpecialMesh") mesh.MeshType = ("Sphere") mesh.Parent = part local bv = Instance.new ("BodyVelocity") bv.Parent = part bv.Velocity = Vector3.new(math.random(-10,60),math.random(-10,60),math.random(-10,60)) game:GetService("Debris"):AddItem(part, 5) local ten = true part.Touched:connect(function(hit) if not ten then return end ten = false local human = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid") if human then local bv = Instance.new("BodyVelocity") bv.maxForce = Vector3.new(1e990, 1e990, 1e990) bv.velocity = delta.unit * 148 bv.Parent = root elseif hit.Anchored == true and hit.CanCollide == true then part:Destroy() end end) end end end end
is there anything going wrong in here i cant seem to figure out