How to make a simple car in Roblox Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

ความคิดเห็น • 88

  • @BivonDoesStuff
    @BivonDoesStuff 5 หลายเดือนก่อน +4

    Wait.. I never got to find this video!
    I'm lucky

  • @offyoutube6964
    @offyoutube6964 ปีที่แล้ว +7

    -- I set both my front wheels as motors, no idea how the steer function works but everything else should work fine
    -- tells the script that these parts exist
    local Seat = script.Parent.VehicleSeat
    local FrontRight = script.Parent.FrontRight
    local FrontLeft = script.Parent.FrontLeft
    local BackLeft = script.Parent.BackLeft
    local BackRight = script.Parent.BackRight
    local BodyAngularVelocity = script.Parent.Base.BodyAngularVelocity
    Seat.Changed:Connect(function() --function is telling when this is called execute this
    if Seat.Throttle == 1 then -- changes throttle appon a key press meaning if it is = to one it will execute this code
    FrontLeft.HingeConstraint.AngularVelocity = 25 -- tells vehicle to accelerate at specifed speed
    FrontLeft.HingeConstraint.MotorMaxTorque = 10000 -- force of rotation
    FrontRight.HingeConstraint.AngularVelocity = -25
    FrontRight.HingeConstraint.MotorMaxTorque = 10000
    elseif Seat.Throttle == -1 then
    FrontLeft.HingeConstraint.AngularVelocity = -25
    FrontLeft.HingeConstraint.MotorMaxTorque = 10000
    FrontRight.HingeConstraint.AngularVelocity = 25
    FrontRight.HingeConstraint.MotorMaxTorque = 10000
    elseif Seat.Throttle == 0 then
    FrontLeft.HingeConstraint.AngularVelocity = 0
    FrontLeft.HingeConstraint.MotorMaxTorque = 0
    FrontRight.HingeConstraint.AngularVelocity = 0
    FrontRight.HingeConstraint.MotorMaxTorque = 0
    end
    -- bottom code never worked for me but the rest should be OK
    if Seat.Steer == 1 then
    BodyAngularVelocity.MaxTorue = Vector3.new(0,10000,0)
    BodyAngularVelocity.AngularVelocity = Vector3.new(0,-5,0)
    elseif Seat.Steer == -1 then
    BodyAngularVelocity.MaxTorue = Vector3.new(0,10000,0)
    BodyAngularVelocity.AngularVelocity = Vector3.new(0,5,0)
    elseif Seat.Steer == 0 then
    BodyAngularVelocity.MaxTorue = Vector3.new(0,10000,0)
    BodyAngularVelocity.AngularVelocity = Vector3.new(0,0,0)
    end
    end)

    • @FloatingCatGames
      @FloatingCatGames 11 หลายเดือนก่อน

      hey so uh funny mistake u made the bottom script u spelt MaxTorque wrong.

  • @KRIS_STUDIOSYT
    @KRIS_STUDIOSYT ปีที่แล้ว +15

    local Seat = script.Parent.VehicleSeat
    local FrontRight = script.Parent.FrontRight
    local FrontLeft = script.Parent.FrontLeft
    local BackLeft = script.Parent.BackLeft
    local BackRight = script.Parent.BackRight
    local BodyAngularVelocity = script.Parent.Base.BodyAngularVelocity
    Seat.Changed:Connect(function()
    if Seat.Throttle == 1 then

    elseif Seat.Throttle == -1 then

    elseif Seat.Throttle == 0 then

    end
    if Seat.Steer == 1 then

    elseif Seat.Steer == -1 then

    elseif Seat.Steer == 0 then

    end
    end)

  • @НевелинВачков
    @НевелинВачков 6 หลายเดือนก่อน +2

    Is the tutorial the same for 2024?

  • @oberonpanopticon
    @oberonpanopticon ปีที่แล้ว +10

    I tried to follow along with this tutorial but I find it’s really lacking in detail. You explain barely any of what you’re doing, especially with the scripting (which I’d imagine is the most important part). Maybe this tutorial just isn’t for absolute beginners, and it’s probably hard to go into detail when you only have on-screen text to explain with, but regardless it seems kinda like a “teach a man to fish” type of scenario. (Show a man what to do to make a Roblox car and he’ll have a Roblox car, tell a man how and why a Roblox car works and he’ll be set for life)

    • @darienlj
      @darienlj ปีที่แล้ว

      I agree my car is messed up because it shakes every time i drive it because of the wheels and he doesnt make it clear what to do when this happens

    • @Myth2breakera
      @Myth2breakera ปีที่แล้ว +3

      not just you, I've been making games since 2019 and this tutorial sucks

  • @AgusPanSi
    @AgusPanSi ปีที่แล้ว +4

    Instructions unclear: the car isn't accelerating

  • @KitGeri
    @KitGeri ปีที่แล้ว +2

    Thank you for the tutorial but there is one problem, I can't find the BodyAngularVelocity, how can I put it in?

    • @Gamer-jo5bx
      @Gamer-jo5bx ปีที่แล้ว +1

      Use angularvelocity instead because BodyAngularVelocity is deprecated

    • @snicker145
      @snicker145 9 หลายเดือนก่อน

      or u can do instance.new("BodyAngularVelocity,",workspace)

    • @Yks6767
      @Yks6767 6 หลายเดือนก่อน +1

      @@Gamer-jo5bx tank u

  • @brockbaker1894
    @brockbaker1894 ปีที่แล้ว +1

    Finally one that’s new

  • @jawsquint
    @jawsquint ปีที่แล้ว +1

    I dont see the body angular velocity option how do you get that?
    (edit:) I tried using just the normal angular velocity and it didnt work, I tried not editing the code you have at all and changing the bodyangular velocities to angular velocity and it still didnt work

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      You have to enable legacy items in Studio Settings or run instance.new("BodyAngularVelocity").Parent=workspace in the command bar

    • @xhqown7098
      @xhqown7098 ปีที่แล้ว

      @@ShadowFox-Studio Where do you enable legacy items?

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      @@xhqown7098 studio settings

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      @@xhqown7098 in studio settings > Studio, scroll to browsing, then enable "Depreciated Objects Shown"

    • @darienlj
      @darienlj ปีที่แล้ว

      @@ShadowFox-Studio this still wont work

  • @ThE_CuRSed_oNe_RB
    @ThE_CuRSed_oNe_RB ปีที่แล้ว

    hey! can you help me? i did a car with your angular velocity and linearvelocity ideas but i have a issue, the car shakes because the wheels movements

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      Did you set the wheel settings right?

    • @darienlj
      @darienlj ปีที่แล้ว

      @@ShadowFox-Studio What are the wheel settings

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      One of them is a motor and the other 3 are hinges

  • @anonymouslyartist
    @anonymouslyartist ปีที่แล้ว

    How can I make like a key like that you can only sit on the seat when you have that key

  • @Gr33nSc0ut
    @Gr33nSc0ut ปีที่แล้ว +1

    You just got a sub

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว +1

      Thanks!

    • @Gr33nSc0ut
      @Gr33nSc0ut ปีที่แล้ว +1

      @@ShadowFox-Studio will you remember me when you get famous I am your 3rd sub

    • @Pyth_Gamig1324
      @Pyth_Gamig1324 2 หลายเดือนก่อน

      ​@@Gr33nSc0ut How the heck is the guy supposed to remember you if i cant remember my dinner?!

  • @msandro010
    @msandro010 ปีที่แล้ว

    when i set the BackLeft wheel to act as a motor, it kinda destabilizes the whole vehicle since its big and makes it almost impossible to make curves. how can i fix that?

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว +2

      Try setting both of the back wheels as motors

    • @RepStars911
      @RepStars911 ปีที่แล้ว

      you can set the motorAcceleration to lower like 100
      BackLeft.HingeConstraint.MotorMaxAcceleration = 100
      and also add the second wheel as motor and make it work

    • @-._Radixerus_.-
      @-._Radixerus_.- ปีที่แล้ว +1

      You'll have to add another motor that turns the wheels in the direction you want to turn.

    • @Chan-um9xf
      @Chan-um9xf หลายเดือนก่อน

      local seat = script.Parent.VehicleSeat keep these locals incase you wanna add more Press Read More on this comment to know
      local frontright = script.Parent.FrontRight
      local frontleft = script.Parent.FrontLeft
      local backright = script.Parent.BackRight
      local backleft = script.Parent.BackLeft
      local bodyangularvelocity = script.Parent.Base.AngularVelocity
      seat.Changed:Connect(function()
      if seat.Throttle == 1 then
      backleft.HingeConstraint.AngularVelocity = 150
      backleft.HingeConstraint.MotorMaxTorque = 15000
      backright.HingeConstraint.AngularVelocity = 150
      backright.HingeConstraint.MotorMaxTorque = 15000
      elseif seat.Throttle == -1 then
      backleft.HingeConstraint.AngularVelocity = -150
      backleft.HingeConstraint.MotorMaxTorque = 15000
      backright.HingeConstraint.AngularVelocity = -150
      backright.HingeConstraint.MotorMaxTorque = 15000
      elseif seat.Throttle == 0 then
      backleft.HingeConstraint.AngularVelocity = 0
      backleft.HingeConstraint.MotorMaxTorque = 0
      backright.HingeConstraint.AngularVelocity = 0
      backright.HingeConstraint.MotorMaxTorque = 0

      end
      if seat.Steer == 1 then
      bodyangularvelocity.MaxTorque = Vector3.new(0,100,0)
      bodyangularvelocity.AngularVelocity = Vector3.new(0,-5,0)
      elseif seat.Steer == -1 then
      bodyangularvelocity.MaxTorque = Vector3.new(0,100,0)
      bodyangularvelocity.AngularVelocity = Vector3.new(0,5,0)
      elseif seat.Steer == 0 then
      bodyangularvelocity.MaxTorque = Vector3.new(0,0,0)
      bodyangularvelocity.AngularVelocity = Vector3.new(0,0,0)
      end
      end)
      >>>>
      local FrontLeft = script.parent.FrontLeft -- get ur wheel local (can be rear front left or right)
      in this line of code
      seat.Changed:Connect(function()
      if seat.Throttle == 1 then
      backleft.HingeConstraint.AngularVelocity = 150
      backleft.HingeConstraint.MotorMaxTorque = 15000
      backright.HingeConstraint.AngularVelocity = 150
      backright.HingeConstraint.MotorMaxTorque = 15000 -- you add them here under this text like:
      elseif seat.Throttle == -1 then
      backleft.HingeConstraint.AngularVelocity = -150
      backleft.HingeConstraint.MotorMaxTorque = 15000
      backright.HingeConstraint.AngularVelocity = -150
      backright.HingeConstraint.MotorMaxTorque = 15000 -- you add them here under this text like:
      elseif seat.Throttle == 0 then
      backleft.HingeConstraint.AngularVelocity = 0
      backleft.HingeConstraint.MotorMaxTorque = 0
      backright.HingeConstraint.AngularVelocity = 0
      backright.HingeConstraint.MotorMaxTorque = 0 -- you add them here under this text like:
      ///////end
      FrontLeft.hingeconstraint.angularVelocity = then you just add the numbers that corresponds to like
      FrontLeft.HingeConstraint.AngularVelocity = (Number)
      and
      FrontLeft.HingeConstraint.MotorMaxTorque = (Number)
      and just enjoy
      ur customizable script

  • @Gamer-jo5bx
    @Gamer-jo5bx ปีที่แล้ว

    i made a car only by vectorforce and angular velocity this is very simple

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      I made a car similar to that one too. I used BodyAngularVelocity and BodyVelocity.

    • @Gamer-jo5bx
      @Gamer-jo5bx ปีที่แล้ว

      @@ShadowFox-Studio yes

  • @Jawn-t9p
    @Jawn-t9p 6 หลายเดือนก่อน

    bro how do you select 2 things at once

    • @ZentaMark
      @ZentaMark 6 หลายเดือนก่อน

      Press shift + left click

    • @Jawn-t9p
      @Jawn-t9p 6 หลายเดือนก่อน

      @@ZentaMark anks

  • @Jordan_Mines
    @Jordan_Mines ปีที่แล้ว

    Can you make it a model?

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      What do you mean?

    • @realeliasyoutube
      @realeliasyoutube ปีที่แล้ว

      @@ShadowFox-Studio He means to make it a model so that we can download the exact car you made and use it in our game

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      @@realeliasyoutube sure! I just need to find where I put the file for it

  • @Not_ThatKidYT
    @Not_ThatKidYT ปีที่แล้ว

    New sub

  • @RoniBaker
    @RoniBaker ปีที่แล้ว

    4:00

  • @locidechief
    @locidechief ปีที่แล้ว

    when I go forward it turns

  • @locidechief
    @locidechief ปีที่แล้ว

    hey I need help

  • @Icypenguin931
    @Icypenguin931 11 หลายเดือนก่อน

    you should add the script in the description or comments

  • @lia_heeler
    @lia_heeler ปีที่แล้ว

    i dont have bodyangleerveloassity

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      Enable "Show Depreciated Objects" in studio settings

    • @AQUA69.
      @AQUA69. 7 หลายเดือนก่อน

      sydney trains game purpose be like

    • @lia_heeler
      @lia_heeler 7 หลายเดือนก่อน

      @@AQUA69. I love Sydney train games

    • @Chan-um9xf
      @Chan-um9xf หลายเดือนก่อน

      i think angular velocity works for me

  • @Chan-um9xf
    @Chan-um9xf หลายเดือนก่อน

    its a shame its only ond (one wheel drive) but the script to all rear drive:
    local seat = script.Parent.VehicleSeat -- keep these locals incase you wanna change Scroll down on this comment to know how to add mroe wheels
    local frontright = script.Parent.FrontRight
    local frontleft = script.Parent.FrontLeft
    local backright = script.Parent.BackRight
    local backleft = script.Parent.BackLeft
    local bodyangularvelocity = script.Parent.Base.AngularVelocity
    seat.Changed:Connect(function()
    if seat.Throttle == 1 then
    backleft.HingeConstraint.AngularVelocity = 150
    backleft.HingeConstraint.MotorMaxTorque = 15000
    backright.HingeConstraint.AngularVelocity = 150
    backright.HingeConstraint.MotorMaxTorque = 15000
    elseif seat.Throttle == -1 then
    backleft.HingeConstraint.AngularVelocity = -150
    backleft.HingeConstraint.MotorMaxTorque = 15000
    backright.HingeConstraint.AngularVelocity = -150
    backright.HingeConstraint.MotorMaxTorque = 15000
    elseif seat.Throttle == 0 then
    backleft.HingeConstraint.AngularVelocity = 0
    backleft.HingeConstraint.MotorMaxTorque = 0
    backright.HingeConstraint.AngularVelocity = 0
    backright.HingeConstraint.MotorMaxTorque = 0

    end
    if seat.Steer == 1 then
    bodyangularvelocity.MaxTorque = Vector3.new(0,100,0)
    bodyangularvelocity.AngularVelocity = Vector3.new(0,-5,0)
    elseif seat.Steer == -1 then
    bodyangularvelocity.MaxTorque = Vector3.new(0,100,0)
    bodyangularvelocity.AngularVelocity = Vector3.new(0,5,0)
    elseif seat.Steer == 0 then
    bodyangularvelocity.MaxTorque = Vector3.new(0,0,0)
    bodyangularvelocity.AngularVelocity = Vector3.new(0,0,0)
    end
    end)
    >>>>
    local FrontLeft = script.parent.FrontLeft -- get ur wheel local (can be rear front left or right)
    in this line of code
    seat.Changed:Connect(function()
    if seat.Throttle == 1 then
    backleft.HingeConstraint.AngularVelocity = 150
    backleft.HingeConstraint.MotorMaxTorque = 15000
    backright.HingeConstraint.AngularVelocity = 150
    backright.HingeConstraint.MotorMaxTorque = 15000 -- you add them here under this text like:
    elseif seat.Throttle == -1 then
    backleft.HingeConstraint.AngularVelocity = -150
    backleft.HingeConstraint.MotorMaxTorque = 15000
    backright.HingeConstraint.AngularVelocity = -150
    backright.HingeConstraint.MotorMaxTorque = 15000 -- you add them here under this text like:
    elseif seat.Throttle == 0 then
    backleft.HingeConstraint.AngularVelocity = 0
    backleft.HingeConstraint.MotorMaxTorque = 0
    backright.HingeConstraint.AngularVelocity = 0
    backright.HingeConstraint.MotorMaxTorque = 0 -- you add them here under this text like:
    ///////end
    FrontLeft.hingeconstraint.angularVelocity = then you just add the numbers that corresponds to like
    FrontLeft.HingeConstraint.AngularVelocity = (Number)
    and
    FrontLeft.HingeConstraint.MotorMaxTorque = (Number)
    and just enjoy
    ur customizable script

  • @MAYO_42069
    @MAYO_42069 5 วันที่ผ่านมา

    inju daulhook

  • @supresoft6699
    @supresoft6699 ปีที่แล้ว

    I don’t think a script is a “Simple car”

    • @ThE_CuRSed_oNe_RB
      @ThE_CuRSed_oNe_RB ปีที่แล้ว +1

      if you want to make a roblox game 100% you need to know how to script, dont expect anything if you dont inow nothing about lua or scripting
      Btw that script uses too basic functions of scripting that are very easy so thats why its simple

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว +2

      You can't make a car without a script

    • @dude9436
      @dude9436 ปีที่แล้ว

      I want to learn how to use lua but it’s so confusing to me

    • @oberonpanopticon
      @oberonpanopticon ปีที่แล้ว

      unfortunately it doesn’t seem like it gets any simpler. It seems like it might have actually been easier in older versions of Roblox, but I’d need to do more research to be sure.

    • @ShadowFox-Studio
      @ShadowFox-Studio  ปีที่แล้ว

      @@oberonpanopticon It's actually harder in older versions of roblox due to the fewer amount of tools