How to code a train in roblox studio

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • first tutorial in a while

Комментарии • 18

  • @byStunt7
    @byStunt7 Год назад

    Nice video, thy it's very helpful!

  • @Monkey-zu6if
    @Monkey-zu6if Месяц назад

    "This is my first Video" Well then Welcome to RUclips.

  • @Microblion
    @Microblion Месяц назад

    why do going backwards need multiple clicks?

  • @dxrvfx
    @dxrvfx Год назад +1

    I really wish that I could edit this video for you but I'm busy with school..:((

    • @noodle_dev2227
      @noodle_dev2227  Год назад +1

      Only reason I didn’t edit this video is because I am pretty busy with school and other stuff but it’s okay. I am planning to make a newly edited one very soon.

  • @Mikewastaken152
    @Mikewastaken152 5 месяцев назад

    600th subscriber

  • @JohnPlayz22
    @JohnPlayz22 11 месяцев назад

    Nice

  • @KstENG
    @KstENG Год назад

    I like trains

  • @RobloxInworks
    @RobloxInworks 8 месяцев назад +3

    Heres Fully Working 2024 Script
    local VehicleSeat = script.Parent
    local LinearVelocity = script.Parent.Parent.Base.LinearVelocity
    local MaxSpeed = 85
    local MaxSpeedReverse = -15
    local SpeedIncrease = 0.5
    local IntervalSpeedIncrease = 0.1
    local IvervalSpeedDecrease = 0.2
    VehicleSeat.Changed:Connect(function()
    if VehicleSeat.Throttle > 0 then
    repeat
    if LinearVelocity.LineVelocity = MaxSpeed
    elseif VehicleSeat. Throttle < 0 then
    repeat
    if LinearVelocity.LineVelocity >= MaxSpeedReverse then
    task.wait(IvervalSpeedDecrease)
    LinearVelocity.LineVelocity = LinearVelocity.LineVelocity - SpeedIncrease
    end
    until VehicleSeat. Throttle < 0 or VehicleSeat.Throttle == 0 or LinearVelocity.LineVelocity

  • @DevsDevis86
    @DevsDevis86 Год назад

    why in my code does not show (.LineVelocity) why??

  • @NibbleSharkedo
    @NibbleSharkedo Год назад

    I put the new 4g’s on the jeep

  • @static_tv_og
    @static_tv_og Год назад

    Can you do this with pre-made track??

  • @LimitedBeast
    @LimitedBeast Год назад

    The train won't drive and I'm doing every single thing correctly??

    • @Bananek_GG
      @Bananek_GG 5 месяцев назад +1

      New script working
      local VehicleSeat = script.Parent
      local LinearVelocity = script.Parent.Parent.Base.LinearVelocity
      local MaxSpeed = 85
      local MaxSpeedReverse = -15
      local SpeedIncrease = 0.5
      local IntervalSpeedIncrease = 0.1
      local IvervalSpeedDecrease = 0.2
      VehicleSeat.Changed:Connect(function()
      if VehicleSeat.Throttle > 0 then
      repeat
      if LinearVelocity.LineVelocity = MaxSpeed
      elseif VehicleSeat. Throttle < 0 then
      repeat
      if LinearVelocity.LineVelocity >= MaxSpeedReverse then
      task.wait(IvervalSpeedDecrease)
      LinearVelocity.LineVelocity = LinearVelocity.LineVelocity - SpeedIncrease
      end
      until VehicleSeat. Throttle < 0 or VehicleSeat.Throttle == 0 or LinearVelocity.LineVelocity

    • @Mikewastaken152
      @Mikewastaken152 5 месяцев назад

      @@Bananek_GG does not work either