bp1=script.Parent.BrakeParticles1.ParticleEmitter bp2=script.Parent.BrakeParticles2.ParticleEmitter bs=script.Parent.Mover.Sound while true do wait(.1)if dir.Value==0 then script.Parent.Mover.BodyVelocity.Velocity=Vector3.new(0,0,0)elseif dir.Value>=.5 then script.Parent.Mover.BodyVelocity.velocity=script.Parent.Mover.CFrame.lookVector*rsp.Value elseif dir.Value<=-0.5 then script.Parent.Mover.BodyVelocity.velocity=script.Parent.Mover.CFrame.lookVector*-rsp.Value end if brk.Value>=0 and csp.Value>=.5 then bp1.Enabled=true bp2.Enabled=true bs.Volume=brk.Value/bmax.Value else bp1.Enabled=false bp2.Enabled=false bs.Volume=0 end end

bp1 = script.Parent.BrakeParticles1.ParticleEmitter
bp2 = script.Parent.BrakeParticles2.ParticleEmitter
bs = script.Parent.Mover.Sound --brake sound

while true do
	wait(0.1)
	--dir & speed
	if dir.Value == 0 then
		script.Parent.Mover.BodyVelocity.Velocity = Vector3.new(0, 0, 0)
	elseif dir.Value >= 0.5 then
		script.Parent.Mover.BodyVelocity.velocity= script.Parent.Mover.CFrame.lookVector*rsp.Value
	elseif dir.Value <= -0.5 then
		script.Parent.Mover.BodyVelocity.velocity= script.Parent.Mover.CFrame.lookVector*-rsp.Value
	end
	--Brake effects
	if brk.Value >= 0 and csp.Value >= 0.5 then
		bp1.Enabled = true
		bp2.Enabled = true
		bs.Volume = brk.Value / bmax.Value --this trick doesn't let the sound hurt your ears 
		                             	   --even when the maximum brake value is 10000000
	else 
		bp1.Enabled = false
		bp2.Enabled = false
		bs.Volume = 0
	end
end
