How to make a 'special car'

im trying to recreate the bus from this game tilted ‘snakey bus’. I want to use something similar to it to create a game, but I’m not sure how I would make it.

All i need to know is how to create the movement.

I would like to be able to make the bus go 1 set speed (50 studs / s or smth)
Able to have infinite amount of sections (until it starts lagging or smth)
Make the movement the same as it is (this is the part i dont know how to make)

from the third point, im not sure how i would make all the carriages follow the path the person has made.

I made this ages ago, but i dont think it works
Bus game.rbxl (69.4 KB)

3 Likes

to make them follow the path that they do, it’s obvious that it cannot be achieved with the conventional physics that roblox provides. It leads me to believe that they use splines since it seems that the carriages do not seem affected by external forces(including weight).

1 Like

and the bus makes points based on its position?

1 Like

Well, you would need to use ball socket constraints in order to attach the articulated bus , and for movement, use a vehicle seat and detect steering and throttle and throttle the wheels and steer front pending on the throttle and steer

yes, also this will not work with the regular constraints that roblox offers, it seems that the carriages are CFramed but the main vehicle is not.

i will try to use all of your information to make it. Thanks!

this is what i have so far.

task.wait(5)
local Bus = workspace.Bus
local Carrige = workspace.Carrige

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local Speed = 20
local Position = {}

RunService.Heartbeat:Connect(function(DeltaTime)
	local part = Instance.new("Part")
	part.Parent = workspace
	part.Size = Vector3.new(1, 1, 1)
	part.Anchored = true
	part.CFrame = Bus.CFrame
	Carrige.CFrame = Bus.CFrame
	Bus.CFrame = Bus.CFrame:ToWorldSpace(CFrame.new(0, 0, DeltaTime * Speed))
end)

all that i now need to do is make the carriages work, as the movement for the front is done

i used splines and it does not look good @RatiusRat . Here is another post I made

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