Did i can make smoke on bike?

-- 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

Can you show video of your problem?

oke wait i will record but its there way to make shift to play trails?

skid marks not showing if i brake it
RobloxStudioBeta_X4eJ3YmskD

1 Like

Oh I see. Your bike wheel are not leaving a skid mark trail. Now there are several causes to this

  1. Check your script.
    See if your script actually turns on the trail when you brake it.

  2. Check on invisible baseplate
    Sometimes, the trail can be covered by the baseplate. This is because the attachments for the trail are too low.

If this is the problem, then I will suggest you make your baseplate invisible and try riding your bike.

If the skid mark appears, then you should move the attachments up a little higher.

oke thanks its actualy not working because the scripts for a-chassis car

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.