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

Ойындар

In this video I am going to show you how you should create a moving part that also moves the player standing on it!!
/////////////////////////////////////
Script: pastebin.com/tBTa1MLt
Free Model: create.roblox.com/marketplace...
/////////////////////////////////////
Music: TheFatRat & Cecilia Gault - Escaping Gravity
Watch the official music video: • TheFatRat & Cecilia Ga...
Follow TheFatRat: linktr.ee/TheFatRat
/////////////////////////////////////
SCRIPT:
-- Moving Part With Moving Player by BLOXIANCODE / bloxiancode
-- Tutorial: • How To Make A Moving P...
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
/////////////////////////////////////
Thanks for watching!
Join my Discord here: / discord
Buy my merch to support me!!!
👕Shirt merch: www.roblox.com/catalog/108975...
Shirt merch: www.roblox.com/catalog/130828...
moving platform roblox studio, roblox studio, roblox, roblox dev, development, game development, roblox development, roblox scripting, roblox moving platform, moving platform script, how to move a platform on roblox, how to move a platform
Dont forget to subscribe, like and comment. If you have ideas, questions or other things, then put them in the comments below!
My Roblox Profile: www.roblox.com/users/38144562...
#RobloxStudio #HowToScript #Roblox

Пікірлер: 75

  • @BloxianCode
    @BloxianCode5 ай бұрын

    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!🤗🤗

  • @mpizzaboy164

    @mpizzaboy164

    5 ай бұрын

    What’s the song name ?

  • @BloxianCode

    @BloxianCode

    5 ай бұрын

    ​@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_Studio5 ай бұрын

    Your tutorials are simplified and understandable! Continue!

  • @BloxianCode

    @BloxianCode

    5 ай бұрын

    Thanks!!

  • @juandavidordonez8427
    @juandavidordonez842723 күн бұрын

    Finally a simple and easy video tutorial, thank you!

  • @LightningDev23
    @LightningDev235 ай бұрын

    Welcome back! :)

  • @Guamvege
    @Guamvege2 ай бұрын

    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

  • @choiternity7305
    @choiternity730511 күн бұрын

    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?

  • @Unpredictableiscool
    @Unpredictableiscool15 күн бұрын

    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

  • @alphapham2060
    @alphapham20605 ай бұрын

    First comment. Nice video mate.

  • @BloxianCode

    @BloxianCode

    5 ай бұрын

    Glad to hear!

  • @ChespinisEpic
    @ChespinisEpic22 күн бұрын

    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.

  • @mememan499
    @mememan4993 ай бұрын

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

  • @Ankyloceratopsid
    @AnkyloceratopsidАй бұрын

    Just wondering does it work for meshparts?

  • @Ridgedus31
    @Ridgedus312 ай бұрын

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

  • @BloxianCode

    @BloxianCode

    2 ай бұрын

    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 :)

  • @n0mad1an
    @n0mad1an13 күн бұрын

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

  • @Devlix_himself
    @Devlix_himself12 күн бұрын

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

  • @kittycorn1068
    @kittycorn10682 ай бұрын

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

  • @Saykator
    @Saykator4 ай бұрын

    If I resize it , it stops working

  • @Maximus_67Castlewell
    @Maximus_67Castlewell26 күн бұрын

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

  • @ItzMal888

    @ItzMal888

    16 күн бұрын

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

  • @Maximus_67Castlewell

    @Maximus_67Castlewell

    15 күн бұрын

    @@ItzMal888 It is coming soon!

  • @frosye.
    @frosye.10 күн бұрын

    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)

  • @bloxkid756
    @bloxkid7562 ай бұрын

    My plate is going to space how do I fix

  • @greenmiles4553
    @greenmiles45535 ай бұрын

    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

    Ай бұрын

    Make the walls no collisioned

  • @dimitripetrenko282
    @dimitripetrenko282Ай бұрын

    what if i want it to rotate

  • @-CENSORED0-
    @-CENSORED0-Ай бұрын

    Does this work for a union?

  • @JustZack4
    @JustZack4Ай бұрын

    DOES IT WORK ON A SPHERE

  • @BlueGD703
    @BlueGD7034 ай бұрын

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

  • @BloxianCode

    @BloxianCode

    4 ай бұрын

    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

  • @BaoTinTran-rz8hf
    @BaoTinTran-rz8hf4 ай бұрын

    How make it move slow

  • @Fugitoid-gp5tx
    @Fugitoid-gp5tx28 күн бұрын

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

  • @BloxianCode

    @BloxianCode

    28 күн бұрын

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

  • @HaikuFalls
    @HaikuFalls4 ай бұрын

    How do I make it slower?

  • @acidwasheree

    @acidwasheree

    3 ай бұрын

    Lower velocity I’m pretty sure

  • @thestickchannel1845
    @thestickchannel18453 ай бұрын

    how can i make it going up while its tilted?

  • @BloxianCode

    @BloxianCode

    3 ай бұрын

    What do you mean exactly?

  • @TextureDotJpeg

    @TextureDotJpeg

    Ай бұрын

    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)

  • @littledev
    @littledev4 ай бұрын

    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

    4 ай бұрын

    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

    3 ай бұрын

    !!!!!!!​@@BloxianCode

  • @crackxall11
    @crackxall114 ай бұрын

    it wasnt working

  • @gabrielatrujillo3111
    @gabrielatrujillo31114 ай бұрын

    The platform isnt moving

  • @Vexin_Vex

    @Vexin_Vex

    14 күн бұрын

    Made sure the part is not anchored

  • @skeletoneyd
    @skeletoneyd4 ай бұрын

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

  • @BloxianCode

    @BloxianCode

    4 ай бұрын

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

  • @user-vg3sm3si5i
    @user-vg3sm3si5i5 күн бұрын

    It isn't working properly, it going random positions

  • @universoul6079
    @universoul60795 ай бұрын

    how do you make the distance farther

  • @BloxianCode

    @BloxianCode

    5 ай бұрын

    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🤗

  • @C0v3y

    @C0v3y

    3 ай бұрын

    ​@BloxianCode thank you so much for that mate!! You deserve more subs. 👍

  • @Roblox-gamer
    @Roblox-gamer3 ай бұрын

    how do i change the speed

  • @BloxianCode

    @BloxianCode

    3 ай бұрын

    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

  • @Roblox-gamer

    @Roblox-gamer

    3 ай бұрын

    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

  • @romariocardoso
    @romariocardoso3 ай бұрын

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

  • @xR3_Phoenix

    @xR3_Phoenix

    Ай бұрын

    Same here 😢

  • @luckyfunky1178
    @luckyfunky11784 ай бұрын

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

  • @luckyfunky1178

    @luckyfunky1178

    4 ай бұрын

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

  • @BloxianCode

    @BloxianCode

    4 ай бұрын

    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

    4 ай бұрын

    Alright.@@BloxianCode

  • @striker_yoyo3096

    @striker_yoyo3096

    4 ай бұрын

    pastebin isnt loading can u put in desc

  • @BloxianCode

    @BloxianCode

    4 ай бұрын

    @@striker_yoyo3096Yes of course! Here it is: -- Moving Part With Moving Player by BLOXIANCODE kzread.info -- Tutorial: kzread.info/dash/bejne/aJ6mmteqpa7JlJM.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

  • @ninas8238
    @ninas82384 ай бұрын

    It didn’t work.

  • @BloxianCode

    @BloxianCode

    4 ай бұрын

    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

    4 ай бұрын

    @@BloxianCode ok ty

  • @gabrielatrujillo3111

    @gabrielatrujillo3111

    4 ай бұрын

    It dissapears

  • @ChespinisEpic
    @ChespinisEpic22 күн бұрын

    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()

  • @AAAAAAAAAAA398
    @AAAAAAAAAAA3984 ай бұрын

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

  • @BloxianCode

    @BloxianCode

    4 ай бұрын

    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

    4 ай бұрын

    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

    3 ай бұрын

    ​@@BloxianCode ?

  • @princetbz1102

    @princetbz1102

    3 ай бұрын

    @@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

    3 ай бұрын

    :0@@princetbz1102

Келесі