I have this script that splits a part into multiple parts but I add a BodyVelocity to it and it will not fling or move. Here is the code I have:
local function SplitPart(Part,Increment)
local X = Part.Size.X
local Y = Part.Size.Y
local Z = Part.Size.Z
Part.Transparency = 1
Part.CanCollide = false
for x = 0,X - Increment,Increment do
for y = 0,Y - Increment,Increment do
for z = 0,Z - Increment,Increment do
local Part1 = Instance.new("Part",workspace)
Part1.Size = Vector3.new(Increment,Increment,Increment)
Part1.BrickColor = Part.BrickColor
Part1.CFrame = Part.CFrame * CFrame.new((X/2 - Increment/2) - x,(Y/2 - Increment/2) - y,(Z/2 - Increment/2) - z)
local V = Instance.new("BodyVelocity",Part1)
V.maxForce = Vector3.new(9e9,9e9,9e9)
V.velocity = Part1.CFrame.lookVector * -50
end
end
end
Part:Destroy()
end
SplitPart(script.Parent,1)
Why won't the parts fling?
