Shown in the video its basically like an explosion effect but I need to know what it’s fully called and how to make it.
a debris effect, ig. You can create some parts and just fling them into the air with a force and let the physics do the work
I have no idea what it’s called, but it’s very simple to make.
I threw this together quickly:
function BlockParticles(Position, Amount)
local Counter = 0
while Counter ~= Amount + 1 do
Counter += 1
local Block = Instance.new("Part", workspace)
local BlockSideSize = math.random(1, 2.5)
Block.Size = Vector3.new(BlockSideSize, BlockSideSize, BlockSideSize)
Block.CanCollide = false
Block.Position = Position
Block.Color = BrickColor.random().Color
local Attatchment = Instance.new("Attachment", Block)
Attatchment.Name = "VelocityAttachment"
local Velocity = Instance.new("LinearVelocity", Block)
Velocity.Attachment0 = Attatchment
Velocity.VectorVelocity = Vector3.new(math.random(-10, 10), 50, math.random(-10, 10))
Velocity.MaxForce = math.huge
local Spin = Instance.new("AngularVelocity", Block)
Spin.Attachment0 = Attatchment
Spin.AngularVelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
Spin.MaxTorque = math.huge
Spin.RelativeTo = Enum.ActuatorRelativeTo.Attachment0
game.Debris:AddItem(Velocity, 0.3)
game.Debris:AddItem(Block, 10)
end
end
task.wait(5)
BlockParticles(Vector3.new(0, 0, 0), 20)
How it works:
- Makes a certain amount of parts with random colours at the specified location
- Makes an attatchment in each one
- Adds a LinearVelocity to boost the part upwards based on the attatchment
- Adds an AngularVelocity to spin the part based on the attatchment
- Adds everything to Debris to automatically remove
basically just parts flung in the air
yup