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

What is wrong with this Particle Emitter script?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
local wing1 = Instance.new ("ParticleEmitter")
wing1.Parent = game.Workspace.Part
wing1.Size = 2
wing1.Lifetime = 5,10
wing1.Speed = 2
wing1.LockedToPart = true
while true do
wing1.Acceleration = 1,0,0
wait (3)
wing1.Acceleration = 0,0,0
wait(3)
end
0
What are the errors? SimplyRekt 413 — 8y

1 answer

Log in to vote
1
Answered by
thortol 22
8 years ago

You're supposed to use Size properties should be NumberSequences. Lifetime and Speed property should be a NumberRange. Acceleration property should be Vector3

local wing1 = Instance.new ("ParticleEmitter")

wing1.Parent = game.Workspace.Part

wing1.Size = NumberSequence.new(2)

wing1.Lifetime = NumberRange.new(5,10)

wing1.Speed = NumberRange.new(2)

wing1.LockedToPart = true

while true do

wing1.Acceleration = Vector3.new(1,0,0)

wait (3)

wing1.Acceleration = Vector3.new(0,0,0)

wait(3)

end

Ad

Answer this question