I am trying to make a custom car chaisis system and this isn’t working
The number value on the top of the script isnt increasing
local speed = 0
local maxspeed = 35
local isdriving = true
local intvalueforspeed = 0
local uis = game:GetService("UserInputService")
local function speedchange(speed)
if isdriving == true then
spawn(function()
speed = speed + 1
print("addd")
end)
print(math.round(speed)) -- always 0
end
end
local rs = game:GetService("RunService")
rs:BindToRenderStep("Throttle",Enum.RenderPriority.Camera.Value - 100,speedchange)