✓ ANSWER ACCEPTED
how can i get parts to to shoot out in random directions?
1 answer
✓ Accepted answer
local Interval = 1 -- Your Interval
local Velocity = 2 -- Your Velocity
local StartPosition = Vector3.new(0, 20, 0) -- Your Start Position
while true do
local RandomAngle = Vector3.new(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360))
local Part = Instance.new("Part")
local BodyVelocity = Instance.new("BodyVelocity")
Part.Orientation = RandomAngle
Part.Position = StartPosition
BodyVelocity.Velocity = RandomAngle*Velocity
BodyVelocity.Parent = Part
Part.Parent = workspace
wait(Interval)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
No description? No help.