How To Make A Moving Part With Moving Player!! Roblox Studio Tutorial!

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

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

  • @BloxianCode
    @BloxianCode  11 месяцев назад +5

    Enjoyed the video or learned something new?
    Consider to Subscribe to the channel🔴🔴
    Like the video👍👍
    Turn on the Bell Notifications 🔔🔔
    Leave a comment with a video idea, question or thought about the video!🔉🔉
    Thank you so much for watching the video!🤗🤗

    • @Ch4mpG4ming
      @Ch4mpG4ming 10 месяцев назад +1

      What’s the song name ?

    • @BloxianCode
      @BloxianCode  10 месяцев назад

      ​@mpizzaboy164 Haha the song name is: escaping gravity by TheFatRat. I have a link to the song on youtube in the video description

  • @DarkCoders_Studio
    @DarkCoders_Studio 11 месяцев назад +4

    Your tutorials are simplified and understandable!
    Continue!

  • @ChespinisEpic
    @ChespinisEpic 6 месяцев назад +1

    If your trying to make a group of parts move, pretend the group of parts doesn't exist except for the part you want to add a joint to (like the centermost part in your model for example). Follow the tutorial but don't duplicate your original model, just duplicate that one core part you are adding the joint to for the HumanoidRootPart. You can keep your original core part inside the model it was already in when you are grouping together the HumanoidRootPart and your model to make a new model. So like your model in the video should be a model inside a model, while the humanoidrootpart is also inside the outermost model but not inside the innermost model though idk if that matters much. Once your at the part where your original origin part is doing the animation after hitting play, duplicate the joint in the core part, paste that joint into the other parts of the model, configure each joint's properties manually by looking for part0 in properties and changing it so that part0 is the same as the parent (row above part0) and yea that should work.

  • @LightningDev23
    @LightningDev23 11 месяцев назад +4

    Welcome back! :)

  • @juandavidordonez8427
    @juandavidordonez8427 6 месяцев назад

    Finally a simple and easy video tutorial, thank you!

  • @Guamvege
    @Guamvege 7 месяцев назад +2

    was anyone able to troubleshoot players following the block when they jump on it? whenever I test it I fall if I'm not moving with the block

  • @alphapham2060
    @alphapham2060 11 месяцев назад +3

    First comment. Nice video mate.

  • @Ridgedus31
    @Ridgedus31 8 месяцев назад +2

    Is there any way I can make the destination longer? Thanks!

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

      yes, of course! You have to set a position value for the fromPosition variable and the endPosition variable
      Let me know if you have some questions :)

  • @HaikuFalls
    @HaikuFalls 10 месяцев назад +3

    How do I make it slower?

  • @Maximus_67Castlewell
    @Maximus_67Castlewell 6 месяцев назад +1

    I used it to make a solar eclipse! I will send you the link to the game soon! ;D

    • @Dermafloss1
      @Dermafloss1 6 месяцев назад

      i want to see it when it published what is the game name?

    • @Maximus_67Castlewell
      @Maximus_67Castlewell 6 месяцев назад

      @@Dermafloss1 It is coming soon!

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

      @@Maximus_67Castlewell it came out?

  • @Coldereditzz
    @Coldereditzz 13 дней назад

    I forgot to add the wait and my computer crashed 😂

  • @choiternity7305
    @choiternity7305 5 месяцев назад +2

    what if my part is already moving with an on/off button, but i just wanna make it so the player can move along with it?

    • @str34k1
      @str34k1 3 месяца назад

      same here, reply if u found anything

  • @chaselaub7815
    @chaselaub7815 3 месяца назад +1

    Nice tutorial but when I ran the script it moves forward but then it doesn’t move back because of an error say align position is not a valid member of “Workspace.MovingPart” on line 9 do you know how to solve this

  • @cjseder0407
    @cjseder0407 4 месяца назад

    In a GUI, how could I make a part move?
    For an example: When you type "Help" or "HELP" in the GUI, a part will move.
    But if you get the word wrong the parts will not move.

  • @gabrielatrujillo3111
    @gabrielatrujillo3111 9 месяцев назад +4

    The platform isnt moving

    • @Vexin_Vex
      @Vexin_Vex 6 месяцев назад

      Made sure the part is not anchored

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

      @@Vexin_Vexit just falls

    • @aurenciavelmra
      @aurenciavelmra 4 месяца назад

      @@ChickenDoodleSoup- frrr, how to fix it

    • @mrcls.mv13s
      @mrcls.mv13s 4 месяца назад

      ​@@aurenciavelmra part.Anchored = true

    • @laurens9153
      @laurens9153 2 месяца назад

      @@ChickenDoodleSoup- add an extra 0 at the maxForce

  • @thestickchannel1845
    @thestickchannel1845 8 месяцев назад +2

    how can i make it going up while its tilted?

    • @BloxianCode
      @BloxianCode  8 месяцев назад

      What do you mean exactly?

    • @FosForus_15
      @FosForus_15 6 месяцев назад

      To make it go up you need to re write the (-20, 5, 0) (20, 5, 0)
      To something like this (0, how low you want it, 0) (0, how high you want it, 0)

  • @Kyrnovice
    @Kyrnovice 3 дня назад

    Stuck in the fanum zone

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

    is there a way to attach a part to the moving part like if i want to place a chair on it and i play it, the chair falls of

  • @st4rz08
    @st4rz08 4 месяца назад +1

    2024 - most likely does not work :(

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

    my part just goes upwards and shifts to the right a little then properly works (not in the position i want it to be in)

    • @ilovecheereeos1430
      @ilovecheereeos1430 4 месяца назад

      replace the 5 with a 0 in the y axis and it for the other one too. for example: (20,0,0)

  • @Saykator
    @Saykator 9 месяцев назад

    If I resize it , it stops working

  • @crackxall11
    @crackxall11 10 месяцев назад +1

    it wasnt working

  • @mememan499
    @mememan499 8 месяцев назад

    how do you make it move slightly up as its going to the left at the same time?

  • @skeletoneyd
    @skeletoneyd 9 месяцев назад

    I don't know what I did wrong but it didn't work until I scaled the platform

    • @BloxianCode
      @BloxianCode  9 месяцев назад

      Hmm, thats weird. Scaling should not be a problem unless you make it enormous

  • @kittycorn1068
    @kittycorn1068 8 месяцев назад

    is there a way to let players stay on a spinning part

  • @arnavisrager
    @arnavisrager 3 месяца назад

    Hey could you tell me how to move it foward?

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

    It isn't working properly, it going random positions

  • @BlueGD703
    @BlueGD703 10 месяцев назад

    What about the part moving 10 studs below the player and if the player goes forward the part also goes forwards

    • @BloxianCode
      @BloxianCode  10 месяцев назад

      Its a bit different than in this video. To do that you should make a script with a while-loop in it. In the loop you should set the position of the part to the position of the player minus 10 studs.
      The localscript inside the part should look something like this:
      while true do
      local humanoidRootPart = game.Players.LocalPlayer.Character.HumanoidRootPart
      local part = script.Parent --path to your part
      part.Position = humanoidRootPart.Position + Vector3.new(0, -10, 0)
      end

  • @bloxkid756
    @bloxkid756 7 месяцев назад

    My plate is going to space how do I fix

  • @urnix69
    @urnix69 2 месяца назад

    Yeah no, this is not a good way to make a moving platform.
    For starters, the platform will randomly decide to not move for a long time before doing so again.
    The part is unanchored, which means that multiple players standing on the platform will cause it to weigh it down (completely breaking it in the process). Network Ownership did somewhat fix the issue, but not completely as it still happens.
    Just use a tween to make the platform move, and raycasting to make the player stay on the platform.

    • @lobotommy6
      @lobotommy6 2 месяца назад +2

      and how exactly do you use raycasting to make the player stay on the platform?
      you cant say what to do without explaining it.

    • @wallstreetplays
      @wallstreetplays 12 дней назад

      You cant set a speed using tweenservice.

  • @Fugitoid-gp5tx
    @Fugitoid-gp5tx 6 месяцев назад

    It keeps erroring and saying, AlignPosition is not a valid member of MeshPart

    • @BloxianCode
      @BloxianCode  6 месяцев назад

      Are you sure you inserted an AlignPosition directly into the meshpart and haven't changed its name?

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

    local part + script.parent
    local fromposition = part.Position + Vector3.new(-20,5,0)
    local endposition = part.Position + vector3.new(20,5,0)
    white true do
    part.AlignPosition.Position = fromposition
    wait(5)
    part.AlignPosition.Position = endposition
    wait(5)
    end

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

    can you PLEASE tell me how to make it move once, and only once?

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

      Then don't use the while statement, put the code outside:
      local part script.Parent
      local fromPosition = part.Position + Vector3.new( -20,5,0)
      local endPosition = part.Position + Vector3.new(20,5,0)
      part.AlignPosition.Position = fromPosition
      wait(5)
      part.AlignPosition.Position = endPosition
      wait(5)

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

    it works but my platform is tilted

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

      no need to fix it was tilted 90 degrees by me

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

      I rotated it 90 degrees*

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

    the part doesnt even more

  • @GodXZGamer-mp1tb
    @GodXZGamer-mp1tb 5 дней назад

    it just doesnt work...

  • @BaoTinTran-rz8hf
    @BaoTinTran-rz8hf 9 месяцев назад

    How make it move slow

  • @littledev
    @littledev 10 месяцев назад

    Could you make it so the part would go in a circle in a loop and the player would still stay on it?

    • @BloxianCode
      @BloxianCode  10 месяцев назад

      That's a great idea! Should probably not be that hard to make. I am currently a bit busy with school. Could you remind in a few days?

    • @Darko_Boi
      @Darko_Boi 8 месяцев назад

      !!!!!!!​@@BloxianCode

    • @littledev
      @littledev 4 месяца назад

      @@BloxianCode its been 5 months so please consider making it

  • @Unpredictableiscool
    @Unpredictableiscool 6 месяцев назад

    how can i make it so when the player jumps onto it, it stays upright. right now it tilts and rotates after heavy player collision

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

      anchor the block

    • @3p1c_
      @3p1c_ 3 месяца назад

      @@fruitymaster3 💀anchoring it makes it so that it cant move at all

    • @fruitymaster3
      @fruitymaster3 3 месяца назад

      @@3p1c_ I was terrible at scripting, but all you can do is pretty much... idk, weld it? Weldcontstraint it?

    • @3p1c_
      @3p1c_ 3 месяца назад

      @@fruitymaster3 you can set the density to 100 and alignPos maxforce to something extremely large and the platform will be too dense to be affected by anything

    • @urnix69
      @urnix69 2 месяца назад

      @@3p1c_ This is the exact issue with using alignposition and alignorientation.
      Using unanchored parts causes problems where multiple players standing on a moving platform will cause it to weigh it down and completely breaking it. This cannot be fixed.
      I suggest using a tween to make the platform move, and raycasting to detect if the player is on the moving platform. Raycasting is more complicated to learn, but it's a lot more accurate and works a lot better than the moving platform in the video (especially because the part is anchored).

  • @greenmiles4553
    @greenmiles4553 10 месяцев назад

    Quick question is there any way you can make it so it can pass through walls and make it able to stop for like 10 seconds?

    • @Coribot
      @Coribot 7 месяцев назад

      Make the walls no collisioned

  • @romariocardoso
    @romariocardoso 8 месяцев назад

    bro im getting sad, thats the second tutorial that i watch that doesnt work

  • @roxaplayshd2112
    @roxaplayshd2112 4 месяца назад

    How can I move models from a to b?

    • @laurens9153
      @laurens9153 2 месяца назад

      maybe write instead of: local part = script.parent
      write this instead: local part = script.parent.parent
      im not the best at scripting but this might work

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

    the script isnt working for me, the position and Alignposition is red and also parent

    • @laurens9153
      @laurens9153 2 месяца назад

      check if you write everything right like in the video, if so it shouldnt be red.

  • @universoul6079
    @universoul6079 10 месяцев назад

    how do you make the distance farther

    • @BloxianCode
      @BloxianCode  10 месяцев назад

      To change the distance you should change the numbers in the script from the fromPosition and endPosition. If you want a longer distance you can change -20 and 20 to -40 and 40 for example.
      So you would get:
      local fromPosition = part.Position + Vector3.new(-40, 5, 0)
      local endPosition = part.Position + Vector3.new(40, 5, 0)
      Let me know if its clear to you. Ask more questions if I was not clear enough or if you have other questions🤗

  • @JustZack4
    @JustZack4 6 месяцев назад

    DOES IT WORK ON A SPHERE

  • @fredi0mg6
    @fredi0mg6 4 месяца назад

    It didnt work anyone know why

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

    How do I do it in the opposite direction?

    • @str34k1
      @str34k1 3 месяца назад

      change the 3 axis in the script, x y and z

  • @-CENSORED0-
    @-CENSORED0- 7 месяцев назад

    Does this work for a union?

  • @SpaceGameYTGamer
    @SpaceGameYTGamer 3 месяца назад

    my not work

  • @ChespinisEpic
    @ChespinisEpic 6 месяцев назад

    If the loop isnt working:
    -- Output taken from ChatGPT
    local animation = script:WaitForChild('Animation')
    local humanoid = script.Parent:WaitForChild('Humanoid')
    local dance = humanoid:LoadAnimation(animation)
    -- Function to play the animation and set up looping
    local function playAndLoopAnimation()
    dance:Play()
    dance.Stopped:Wait() -- Wait for the animation to complete
    playAndLoopAnimation() -- Recursively call to loop the animation
    end
    -- Start the animation
    playAndLoopAnimation()

  • @Lsxr-nr9ub
    @Lsxr-nr9ub 15 дней назад

    w video

  • @AnkyTrike
    @AnkyTrike 6 месяцев назад

    Just wondering does it work for meshparts?

    • @icetimestudios
      @icetimestudios Месяц назад +1

      Hey you probably figured it out by now, but seems like its works with meshparts EXCEPT the player WILL NOT stay on the part.

  • @ninas8238
    @ninas8238 10 месяцев назад +1

    It didn’t work.

    • @BloxianCode
      @BloxianCode  10 месяцев назад

      What doesn't work exactly. I know it still works! You can download a copy of the model from the description so you know it works!
      www.roblox.com/library/15701680691/Moving-Platform-with-Moving-Player

    • @ninas8238
      @ninas8238 10 месяцев назад

      @@BloxianCode ok ty

    • @gabrielatrujillo3111
      @gabrielatrujillo3111 9 месяцев назад

      It dissapears

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

    why doesnt mine float?

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

      Make sure you Anchor it

  • @BooogiedownGaming
    @BooogiedownGaming 8 месяцев назад

    how do i change the speed

    • @BloxianCode
      @BloxianCode  8 месяцев назад

      You can change the speed by changing the MaxVelocity number in the AlignPosition. In the video I set it to 15, if you want it to go faster you make that number higher

    • @BooogiedownGaming
      @BooogiedownGaming 8 месяцев назад

      I also got another question @BloxianCode
      how do i make it so the platform stays straight because it keeps on tilting a tiny bit every time i step on it

  • @PlatonNovikov
    @PlatonNovikov 4 месяца назад

    IT DOENT WORKKKKKKKKKKKKKKK TO MEEEEEEEEEEEEEEEEEEEE

  • @AAAAAAAAAAA398
    @AAAAAAAAAAA398 9 месяцев назад

    how to make it move further🤔🤔🤔🤔🤔🤔

    • @BloxianCode
      @BloxianCode  9 месяцев назад +1

      Just change the value of fromPosition and endPosition in the script.
      The lines of those fromPosition and endPosition are:
      local fromPosition = part.Position + Vector3.new(-20,5,0)
      local endPosition = part.Position + Vector3.new(20,5,0)
      So I move the part 20 studs to the left (fromPosition) and 20 studs to the right (endPosition) based on where you place the part. So from left to right is 40 studs in total. You can play around with the -20 and 20 in the Vector3.new() to let part move further.
      Feel free too ask more questions if you have some :)

    • @AAAAAAAAAAA398
      @AAAAAAAAAAA398 9 месяцев назад

      can i ask one more question, is it possible to make it move 3 times instead of twice like "starting from start, going to some place, and then going to end" instead of going from start to end@@BloxianCode

    • @AAAAAAAAAAA398
      @AAAAAAAAAAA398 9 месяцев назад

      ​@@BloxianCode ?

    • @princetbz1102
      @princetbz1102 8 месяцев назад

      @@AAAAAAAAAAA398 i'm no expert but I assume you make a third variable so local thing and then do part position = vector3.new thing

    • @AAAAAAAAAAA398
      @AAAAAAAAAAA398 8 месяцев назад

      :0@@princetbz1102

  • @luckyfunky1178
    @luckyfunky1178 10 месяцев назад

    you forgot to put the script in the description... 1:36

    • @luckyfunky1178
      @luckyfunky1178 10 месяцев назад

      I have already, made a tweening script, do I have to remove it now?

    • @BloxianCode
      @BloxianCode  10 месяцев назад

      Hi! I have put the script on pastebin. The link is put in the description. You can copy the script by going to this link: pastebin.com/tBTa1MLt
      I use pastebin to paste my scripts there so people can easily copy them. Pastebin is a wellknown place to place code-snippets. I hope this helps you out :)
      About your other question: if you want to use this video you should remove your own tweening script, otherwise you have 2 different script telling the part to move. This can cause problems.
      I hope this helps you out. If you have other questions, ask me :)

    • @luckyfunky1178
      @luckyfunky1178 10 месяцев назад

      Alright.@@BloxianCode

    • @yoyobrawlstars
      @yoyobrawlstars 10 месяцев назад

      pastebin isnt loading can u put in desc

    • @BloxianCode
      @BloxianCode  10 месяцев назад

      @@yoyobrawlstarsYes of course!
      Here it is:
      -- Moving Part With Moving Player by BLOXIANCODE ruclips.net/user/BloxianCode
      -- Tutorial: ruclips.net/video/6jr8uquKcd0/видео.html

      local part = script.Parent

      local fromPosition = part.Position + Vector3.new(-20,5,0)
      local endPosition = part.Position + Vector3.new(20,5,0)

      while true do
      part.AlignPosition.Position = fromPosition
      wait(5)
      part.AlignPosition.Position = endPosition
      wait(5)
      end

  • @dimitripetrenko282
    @dimitripetrenko282 7 месяцев назад +1

    what if i want it to rotate

    • @theboyboi1125
      @theboyboi1125 4 месяца назад

      same here i dont know how to either pls tell us