-- version 1.0 - MIK0_San
local FE = workspace.FilteringEnabled
local car = script.Parent.Car.Value
car.RearSection.Wheel.SQ:Play()
local values = script.Parent.Values
local handler = car:WaitForChild("Smoke_FE")
while wait(.2) do
local r1 = Ray.new(car.RearSection.Wheel.Position,(car.RearSection.Wheel.Arm.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*(.05+car.RearSection.Wheel.Size.x/2))
local r1hit = 0
if workspace:FindPartOnRay(r1,car)~=nil then
r1hit=1
end
local rl = math.min((math.max(((car.RearSection.Wheel.RotVelocity.Magnitude*car.RearSection.Wheel.Size.x/1.5)^0.9 - (car.RearSection.Wheel.Velocity.Magnitude))-12,0)),500)*r1hit
local rlstop = math.min((math.max( ( (car.RearSection.Wheel.Velocity.Magnitude) - (car.RearSection.Wheel.RotVelocity.Magnitude*car.RearSection.Wheel.Size.x/2) ) -25,0)),50)*r1hit
local rlt = false
if rl >= 5 or rlstop >= 5 then
rlt = true
elseif rl <= 5 and rlstop <= 5 then
rlt = false
end
local sd = false
if values.Gear.Value == -1 then
sd = true
else
sd = false
end
handler:FireServer("UpdateSmoke",rl,rlstop,rlt,sd)
--handler:FireServer("UpdateSmoke",rl,rr,rlstop,rrstop,rlt,rrt)
end
i try it on Novena Constraint Type: Motorcycle not works
if i shift brake it doesnt show up