Hi DevForum, so I made a little train system using some roblox physics and I used AssemblyLinearVelocity
to use as some kind of force to speed up my train. However when I start up the game and take a seat in the train as it moves, it completely stops. And it continues when I jump off the seat.
Video:
Dunno why this happens. Any help is appreciated
Script:
local maxspeed = 70
wait(5)
repeat wait()
speed = speed + 1
until speed == maxspeed
while task.wait(0.1) do -- a loop
script.Parent.AssemblyLinearVelocity = script.Parent.CFrame.LookVector*speed -- makes the force of the train, 5 studs per second
end