Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a particle emitter for parts?

Asked by 4 years ago
Edited 4 years ago

Hello, I am stuck on finding a way to make a part generate from an area then go to a certain point then destroy. Kind of like a particle emitter accept it's with parts and the part is always spawning moving to and destroying at the same spot. This would be going on forever

Here is what I've sort of come up with so far.

01while true do
02    local TweenService = game:GetService("TweenService")
03 
04    while true -- making the parts that will be generated
05        local part = Instance.new("Part")
06        part.Position = Vector3.new(0, 10, 0)
07        part.Color = Color3.new(1, 0, 0)
08        part.Anchored = true
09        part.Parent = game.Workspace
10        wait(2)
11    do
12 
13 
14    local goal = {}
15    goal.Position = Vector3.new(10, 10, 0)
View all 24 lines...

1 answer

Log in to vote
1
Answered by
Is_Hunter 152
4 years ago

you're destroying the part before it reaches the goal point

01while true do
02    local TweenService = game:GetService("TweenService")
03 
04    while true -- making the parts that will be generated
05        local part = Instance.new("Part")
06        part.Position = Vector3.new(0, 10, 0)
07        part.Color = Color3.new(1, 0, 0)
08        part.Anchored = true
09        part.Parent = game.Workspace
10        wait(2)
11    do
12 
13 
14    local goal = {}
15    goal.Position = Vector3.new(10, 10, 0)
View all 25 lines...
Ad

Answer this question