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!🤗🤗
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.
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
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.
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
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.
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
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)
@@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
@@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).
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
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🤗
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()
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
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
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
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 :)
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
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 :)
@@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
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!🤗🤗
What’s the song name ?
@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!
Thanks!!
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.
Welcome back! :)
Finally a simple and easy video tutorial, thank you!
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
First comment. Nice video mate.
Glad to hear!
Is there any way I can make the destination longer? Thanks!
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 :)
How do I make it slower?
Lower velocity I’m pretty sure
I used it to make a solar eclipse! I will send you the link to the game soon! ;D
i want to see it when it published what is the game name?
@@Dermafloss1 It is coming soon!
@@Maximus_67Castlewell it came out?
I forgot to add the wait and my computer crashed 😂
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?
same here, reply if u found anything
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
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.
The platform isnt moving
Made sure the part is not anchored
@@Vexin_Vexit just falls
@@ChickenDoodleSoup- frrr, how to fix it
@@aurenciavelmra part.Anchored = true
@@ChickenDoodleSoup- add an extra 0 at the maxForce
how can i make it going up while its tilted?
What do you mean exactly?
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)
Stuck in the fanum zone
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
2024 - most likely does not work :(
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)
replace the 5 with a 0 in the y axis and it for the other one too. for example: (20,0,0)
If I resize it , it stops working
it wasnt working
how do you make it move slightly up as its going to the left at the same time?
I don't know what I did wrong but it didn't work until I scaled the platform
Hmm, thats weird. Scaling should not be a problem unless you make it enormous
is there a way to let players stay on a spinning part
Hey could you tell me how to move it foward?
It isn't working properly, it going random positions
What about the part moving 10 studs below the player and if the player goes forward the part also goes forwards
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
My plate is going to space how do I fix
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.
and how exactly do you use raycasting to make the player stay on the platform?
you cant say what to do without explaining it.
You cant set a speed using tweenservice.
It keeps erroring and saying, AlignPosition is not a valid member of MeshPart
Are you sure you inserted an AlignPosition directly into the meshpart and haven't changed its name?
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
can you PLEASE tell me how to make it move once, and only once?
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)
it works but my platform is tilted
no need to fix it was tilted 90 degrees by me
I rotated it 90 degrees*
the part doesnt even more
it just doesnt work...
How make it move slow
Could you make it so the part would go in a circle in a loop and the player would still stay on it?
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?
!!!!!!!@@BloxianCode
@@BloxianCode its been 5 months so please consider making 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
anchor the block
@@fruitymaster3 💀anchoring it makes it so that it cant move at all
@@3p1c_ I was terrible at scripting, but all you can do is pretty much... idk, weld it? Weldcontstraint it?
@@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
@@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).
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?
Make the walls no collisioned
bro im getting sad, thats the second tutorial that i watch that doesnt work
Same here 😢
How can I move models from a to b?
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
the script isnt working for me, the position and Alignposition is red and also parent
check if you write everything right like in the video, if so it shouldnt be red.
how do you make the distance farther
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🤗
DOES IT WORK ON A SPHERE
It didnt work anyone know why
How do I do it in the opposite direction?
change the 3 axis in the script, x y and z
Does this work for a union?
my not work
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()
w video
Just wondering does it work for meshparts?
Hey you probably figured it out by now, but seems like its works with meshparts EXCEPT the player WILL NOT stay on the part.
It didn’t work.
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
@@BloxianCode ok ty
It dissapears
why doesnt mine float?
Make sure you Anchor it
how do i change the speed
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
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
IT DOENT WORKKKKKKKKKKKKKKK TO MEEEEEEEEEEEEEEEEEEEE
how to make it move further🤔🤔🤔🤔🤔🤔
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 :)
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
@@BloxianCode ?
@@AAAAAAAAAAA398 i'm no expert but I assume you make a third variable so local thing and then do part position = vector3.new thing
:0@@princetbz1102
you forgot to put the script in the description... 1:36
I have already, made a tweening script, do I have to remove it now?
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 :)
Alright.@@BloxianCode
pastebin isnt loading can u put in desc
@@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
what if i want it to rotate
same here i dont know how to either pls tell us