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
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
5 ай бұрын
What’s the song name ?
@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
Your tutorials are simplified and understandable! Continue!
@BloxianCode
5 ай бұрын
Thanks!!
Finally a simple and easy video tutorial, thank you!
Welcome back! :)
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
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?
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
First comment. Nice video mate.
@BloxianCode
5 ай бұрын
Glad to hear!
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.
how do you make it move slightly up as its going to the left at the same time?
Just wondering does it work for meshparts?
Is there any way I can make the destination longer? Thanks!
@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 :)
can you PLEASE tell me how to make it move once, and only once?
the script isnt working for me, the position and Alignposition is red and also parent
is there a way to let players stay on a spinning part
If I resize it , it stops working
I used it to make a solar eclipse! I will send you the link to the game soon! ;D
@ItzMal888
16 күн бұрын
i want to see it when it published what is the game name?
@Maximus_67Castlewell
15 күн бұрын
@@ItzMal888 It is coming soon!
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)
My plate is going to space how do I fix
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
Ай бұрын
Make the walls no collisioned
what if i want it to rotate
Does this work for a union?
DOES IT WORK ON A SPHERE
What about the part moving 10 studs below the player and if the player goes forward the part also goes forwards
@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
How make it move slow
It keeps erroring and saying, AlignPosition is not a valid member of MeshPart
@BloxianCode
28 күн бұрын
Are you sure you inserted an AlignPosition directly into the meshpart and haven't changed its name?
How do I make it slower?
@acidwasheree
3 ай бұрын
Lower velocity I’m pretty sure
how can i make it going up while its tilted?
@BloxianCode
3 ай бұрын
What do you mean exactly?
@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)
Could you make it so the part would go in a circle in a loop and the player would still stay on it?
@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
3 ай бұрын
!!!!!!!@@BloxianCode
it wasnt working
The platform isnt moving
@Vexin_Vex
14 күн бұрын
Made sure the part is not anchored
I don't know what I did wrong but it didn't work until I scaled the platform
@BloxianCode
4 ай бұрын
Hmm, thats weird. Scaling should not be a problem unless you make it enormous
It isn't working properly, it going random positions
how do you make the distance farther
@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
3 ай бұрын
@BloxianCode thank you so much for that mate!! You deserve more subs. 👍
how do i change the speed
@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
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
bro im getting sad, thats the second tutorial that i watch that doesnt work
@xR3_Phoenix
Ай бұрын
Same here 😢
you forgot to put the script in the description... 1:36
@luckyfunky1178
4 ай бұрын
I have already, made a tweening script, do I have to remove it now?
@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
4 ай бұрын
Alright.@@BloxianCode
@striker_yoyo3096
4 ай бұрын
pastebin isnt loading can u put in desc
@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
It didn’t work.
@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
4 ай бұрын
@@BloxianCode ok ty
@gabrielatrujillo3111
4 ай бұрын
It dissapears
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()
how to make it move further🤔🤔🤔🤔🤔🤔
@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
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
3 ай бұрын
@@BloxianCode ?
@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
3 ай бұрын
:0@@princetbz1102