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

particle emitter does not turn on when throttle is 1?

Asked by 4 years ago
local seat = script.Parent.Parent

local bv = script.Parent.Parent.BodyVelocity

local av = script.Parent.Parent.BodyAngularVelocity

local engine = script.Parent.Parent.Parent.Engine.ParticleEmitter

while true do

wait()

if seat.Throttle == 0 then

bv.Velocity = seat.CFrame.LookVector * 0

engine.Enabled = false

end

if seat.Throttle == 1 then

bv.Velocity = seat.CFrame.LookVector * 50

engine.Enabled = true

end

if seat.Steer == 1 then

av.AngularVelocity = Vector3.new(0,-2,0)

engine.Enabled = true

end

if seat.Steer == -1 then

av.AngularVelocity = Vector3.new(0,2,0)

engine.Enabled = true

end

if seat.Steer == 0 then

av.AngularVelocity = Vector3.new(0,0,0)

engine.Enabled = false

end

end

for some reason when the throttle is at 1 the particle emitter "engine" does not get enabled, but it does get enabled when any steer number is set. the value is the same for everything so why is this one line not working?

0
is it a Server or Local script? Igoralexeymarengobr 365 — 4y
0
it is a regular script inside a vehicleseat inside a vehicle all on the server. everything else like the bodymovers works just fine its just that one line that doesnt seem to work. mantorok4866 201 — 4y

Answer this question