Need help with trying to work around ApplyImpulse?

Trying to give a skateboard a speed by using vectorforces but its its sort of just sluggish to get up to the speed

this is the function the board calls when its pushing

local velocity = Instance.new("NumberValue", LocalPlayer)
velocity.Name = "Velocity"
db = false
local function Push()
	if not db then
		velocity.Value = velocity.Value + 1
		db = true
		wait(.2)
		db = false
	end
	
end

and this is where the force is changed

local canchange = true
game:GetService("RunService").Heartbeat:Connect(function()
	if canchange == true then
		if velocity.Value > 1.5 then
			canchange = false
			game:GetService("TweenService"):Create(velocity, TweenInfo.new(0.001), {Value = 1.5}):Play()
			wait(.1)
			canchange = true
		end
		local Bruh = velocity.Value * 900
		pushForce.Force = Vector3.new(0, 0, Bruh ) 
		local tInfo = TweenInfo.new(10,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
		local tween = game:GetService("TweenService"):Create(velocity,tInfo,{Value = 0})
		tween:Play()
	end
end)
1 Like