How To Make Crash Physics Roblox Studio Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • Hi thanks for clicking on this video.
    Todays video is a bit different, in todays video i'll be showing you how to make crash physics in Roblox Studio without any scripting skills.
    Hope you enjoy!
    SCRIPT:
    function onTouched(hit)
    hit:BreakJoints()
    end
    connection = script.Parent.Touched:connect(onTouched)

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

  • @steamedtech
    @steamedtech ปีที่แล้ว +20

    --guys i fixed the problem when player dies because of touching car:
    function onTouched(hit)
    local human = hit.Parent:FindFirstChild("Humanoid")
    if human then
    return
    else
    hit:BreakJoints()
    end
    end
    connection = script.Parent.Touched:connect(onTouched)

    • @lll.u
      @lll.u 11 หลายเดือนก่อน +1

      thsanks

    • @certifiedcertification7868
      @certifiedcertification7868 9 หลายเดือนก่อน +1

      good job

    • @steamedtech
      @steamedtech 9 หลายเดือนก่อน +1

      @@certifiedcertification7868 np

    • @user-tr6od1ij6t
      @user-tr6od1ij6t 8 หลายเดือนก่อน +2

      where do you put it
      @@steamedtech

    • @qqlziqYt
      @qqlziqYt 5 หลายเดือนก่อน

      Where to put?

  • @Lego_clips1
    @Lego_clips1 23 ชั่วโมงที่ผ่านมา

    Thanks so much iv been wanting to make a car destruction game for awhile now this helped me so much

  • @oreki1476
    @oreki1476 3 หลายเดือนก่อน +1

    This is so Simple yet fun Nice video

  • @tidyhawk
    @tidyhawk ปีที่แล้ว +5

    Thanks! this is really cool and it helped me a lot!

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

    function onTouched(hit)
    -- Function to check if the hit part is part of a character
    local function isPartOfCharacter(part)
    while part do
    if part:IsA("Model") and part:FindFirstChildOfClass("Humanoid") then
    return true
    end
    part = part.Parent
    end
    return false
    end
    -- If the hit part is part of a character, do nothing
    if isPartOfCharacter(hit) then
    return
    end
    -- Otherwise, break the joints of the hit part
    hit:BreakJoints()
    -- Create a timer to remove the joints after 10 seconds
    local debris = game:GetService("Debris")
    debris:AddItem(hit, 60)
    end
    connection = script.Parent.Touched:Connect(onTouched)
    here's the fixed version of the script
    your welcome :)

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

      Thanks man, im not the best scripter so my guide might be a bit too simple.

  • @The-Game-Making-Guild
    @The-Game-Making-Guild 8 หลายเดือนก่อน +1

    If the car can't break, the other with no same part I have a fix for this
    use the plung called DWeld And Primary Part Generator, it will help fix it when thing will explode intro of that
    local part = game.Workspace.P1
    local vel = 10
    local fact_radius = 2
    local fact_pressure = 10
    part.Touched:Connect(function(hit)
    local p = (part.Position + hit.Position) / 2
    local int = (part.Velocity - hit.Velocity).Magnitude
    local exp = Instance.new("Explosion")
    print(int)
    exp.Position = p
    exp.BlastRadius = int * fact_radius
    exp.BlastPressure = int * fact_pressure
    exp.Parent = game.Workspace
    end)
    wait(20)
    game.Workspace.P1.Velocity = Vector3.new(vel, 0, 0)
    game.Workspace.P2.Velocity = -Vector3.new(vel, 0, 0)

  • @turtIess
    @turtIess ปีที่แล้ว +5

    thanks! It looks good!

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

    Instead of pasting the same code over and over again, put the same code in one script then loop the entire model

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

    0:35 aint no way my 2 models are there (slav sedan and remastered sedan)

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

    you really just made us do a whole tutorial only for it to not be the one thats in the title

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

    Thank you man this really helps a lot

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

    I'am Subscribing now !

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

    TSYMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    UR THE BEST TH-camR IMA SUBSCRIBE

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

      thanks man

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

    How do I make it so if I want a npc to disassemble like a Lego character when a car hits it

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

    this is work so well thank

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

    it helped me!

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

    NVM I didn't realize you had to copy the whole thing

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

      Oh, glad it worked!

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

    i tried up with a blocky car on an A chassis and the game ended up crashed

  • @nitaci7246
    @nitaci7246 7 หลายเดือนก่อน +1

    Good and all but don't really want the character to die when touching the car so kinda pointless haha

    • @M4pl3Syrup
      @M4pl3Syrup  3 หลายเดือนก่อน

      check the pinned comment :P

  • @norinapetraszabo9452
    @norinapetraszabo9452 10 หลายเดือนก่อน +1

    Amm how can I do to not kill you when you run to it

    • @M4pl3Syrup
      @M4pl3Syrup  3 หลายเดือนก่อน

      check the pinned comment

  • @milanszabo1490
    @milanszabo1490 10 หลายเดือนก่อน +1

    This video is so good and help a lot but how did i can do to don’t die when you go to the hitbox

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

      Check the pinned comment

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

    Scripts don't work

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

    MY CAR DOESNT DRIVE

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

      Make sure you use a model that you can drive

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

    my car with the destroyer parts it likes to drift for some reason

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

      You can try putting it again :)

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

      huh? i dont understand my car likes to drift with the parts that destroy the things

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

      @@dogeinator6164 Maybe its the handling of the model or you can try putting the parts again?

  • @stayroblox164
    @stayroblox164 9 หลายเดือนก่อน +1

    Thank you for video

  • @Mykola2456
    @Mykola2456 4 หลายเดือนก่อน

    please make a-chassis version of the tutorial

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

    omg IT LOOK GOOD YOU ARE GENIU!

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

      Thanks lol

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

    Imma put this on a advanced helicopter.

  • @M4pl3Syrup
    @M4pl3Syrup  ปีที่แล้ว +8

    Script is in the description.

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

      hello! you should make the script inside the first part, so when you copy the parts the script is already inside😃

  • @astroshrimpy6784
    @astroshrimpy6784 3 หลายเดือนก่อน

    Bruh it works but my accessories keep disappearing when I touch the block even tho I included the code from the pinned comment

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

    How do you make it so it cant kill the humans?

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

      Using this script, it seperates any blocks from another, so when it touches a human it instantly kills them.
      Unfortunately I don´t think you can make it so dosen´t kill you :(

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

      @@M4pl3Syrup Oof =(

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

      @@chimichanga673 Im sorry :(

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

      Its ok, I can just make a GUI that enables and disables the script. (With a button)

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

      @@chimichanga673 That works too!

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

    How to di this for non blocky cars?

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

      This is the closest you can get with non-blocky cars: m.th-cam.com/video/tUfcfS-S5Pg/w-d-xo.html

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

      scripts

  • @Jaidenaviation
    @Jaidenaviation 8 หลายเดือนก่อน

    the welding part is a bit too overwhelming 😕😕😕😕

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

    your videos would be much better if they were faster, and had a voice-over.

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

      Yea, this is one of my older videos tbh.

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

    it doesnt work too, the car doesnt move

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

      look up a different tutorial then

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

    How its not stick together

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

    Does this work with planes aswell???

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

    How could I make it not kill me?

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

      I dont think you can make it not kill you with tactic.

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

      @@M4pl3Syrup oh ok

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

      @@The4IQcat local player = game.Players:GetPlayerFromCharacter(hit.Parent)
      if player then
      return
      you can find better car crash scripts tho

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

      @@gangbankger300 wait can you put it in order im confused

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

      @@DeepDexxer Here is the script
      function onTouched(hit)

      local player = game.Players:GetPlayerFromCharacter(hit.Parent)
      if player then
      return
      end
      hit:BreakJoints()
      end
      connection = script.Parent.Touched:connect(onTouched)

  • @astroshrimpy6784
    @astroshrimpy6784 3 หลายเดือนก่อน

    For me I need to actually use the script on the part I want

  • @askullshell6946
    @askullshell6946 4 หลายเดือนก่อน

    It’s not working for me

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

    it dont work. it all just falls

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

      If it falls try the welding part again.

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

      @@M4pl3Syrup k

  • @astroshrimpy6784
    @astroshrimpy6784 3 หลายเดือนก่อน

    BRO PLSSS UPDATE THIS IT DOESNT WORK BECAUSE THE HIMAN KEEPS DYING I TRIED THE CODE FORE PINNED COMMENT IT DOES NOT WORK PLSSSSS(all caps so you are other people could see it)

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

    togg yes sirr 1:23

  • @noahbumvr
    @noahbumvr 7 วันที่ผ่านมา

    dont work

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

    hey i notice that the blocks dont kill me... answer?

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

      Did you press enter after you pasted the script?
      There needs to be a empty line.

  • @FriesUnited
    @FriesUnited 10 หลายเดือนก่อน

    Does it work with plane??

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

    song names?

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

    ummm, when i did it. my car has a seizure and exploded. Any help?

    • @y3ejk101
      @y3ejk101 5 หลายเดือนก่อน

      Did u show them flickering light?

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

    can you do same for planes?

  • @DA_REAL_ROBLEX_ROYCE
    @DA_REAL_ROBLEX_ROYCE 10 หลายเดือนก่อน

    how to weld to car?

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

    Give better and strict instructions

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

      Idk im kinda new to scripting + this is a old video

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

    why empty line. Tell me why fast !

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

      Tbh i dont know it didnt work for me without an empty line! :P

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

      @@M4pl3Syrup Is work for me without empty line. That normal ?

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

      @@Gaming_Dark17 As long as it works its good!

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

      ​@@M4pl3Syrup Yes :) But if we put this script in all of part of the car, is gonna damage the orther car but is kill the player ! But i have solution if is a-chassis. I will revise my script and i give you my script later =) Say me if my script work for you. I will give you my model in toolbox because for duplicate the script in each part is so long. So i will give you my model later =)

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

      @@M4pl3Syrup don't work :(