Hi, players! Yesterday, I built a blue train, but it nothing to work with 6 hinges of constraints:
robloxapp-20220614-1847289.wmv (3.1 MB)
How I did do this with my vehicle seat controlling?
Hi, players! Yesterday, I built a blue train, but it nothing to work with 6 hinges of constraints:
robloxapp-20220614-1847289.wmv (3.1 MB)
How I did do this with my vehicle seat controlling?
Is it supposed to go forward when you press W and S? If so, I suggest making a script to make it go forward, instead. Here is an example of a script I brewed up
local vehicleSeat = Instance.new("VehicleSeat") -- where your vehicle seat is
local LinearVelocity = Instance.new("LinearVelocity") -- make sure linear velocity is in the front, facing forward, and is relative to Attatchment0
local Player
local MaxForce = 0 -- whatever max speed is
vehicleSeat.Touched:Connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
Player = game.Players:GetPlayerFromCharacter(hit.Parent)
end
end)
vehicleSeat.TouchEnded:Connect(function(hit)
Player = nil
end)
vehicleSeat.Changed:Connect(function(property)
if property == "Throttle" then
LinearVelocity.MaxForce = MaxForce*500
LinearVelocity.VectorVelocity = Vector3.new(0,10*vehicleSeat.Throttle,0)
end
end)
Yeah, thanks. But I control my vehicle seat, and it doesn’t work either.
Look at this short tutorial, it helps you make sure your hinges are detected properly by the vehicle seat: