This video is a very simple explanation on how to use alignPosition and alignOrientation to move a platform and your player simultaneously. Some guy told me to make this so I did. Be a homie, check out my game - RoWho?
PS: You can rotate the end piece and the platform will rotate while moving aswell. Want multiple rotations? Use multiple destinations/parts for attachment1 to be parented to.
hello! could u do a video on this? cuz i’m trying to make like a moving train for my game. Also is there a way to just make the avatar stick to the part without the moving script? cuz i animated my train instead of using script to move it
@@DeathHela haha okay so if you don't want to scrap the animation, then try this guys tutorial. It's a lot more complicated though as it uses renderstepped and a lot of math so good luck :) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-z7fnxbnNyC8.htmlsi=NqBWnIvhQwnHTuqu
@@DeathHela no need. Try putting a server script in the floor part of your train and paste this into it: local RS = game:GetService("RunService") local part = script.Parent local lastPos = part.Position RS.Stepped:Connect(function(num, deltaTime) local currentPos = part.Position local deltaPos = currentPos - lastPos local velocity = deltaPos - deltaTime part.AssemblyLinearVelocity = velocity lastPos = currentPos end) --drop a sub if this worked
Hello! My script isnt work ---------------------------------------------- local platfrom = script.Parent local attachment1 = game.Workspace:WaitForChild("MovingPlatform"):WaitForChild("start"):WaitForChild("Attachment1") while true do wait(3) attachment1.Parent = game.Workspace:WaitForChild("MovingPlatform"):WaitForChild("endz") wait(3) attachment1.Parent = game.Workspace:WaitForChild("MovingPlatform"):WaitForChild("start") end
@@ogward1851 I'm pretty sure I did. This is the script I have: local CoolCloud = script.Parent local attachment1 = game.Workspace:WaitForChild("MovingCloud"):WaitForChild("CoolCloud Start"):WaitForChild("Attachment1") while true do wait(3) attachment1.Parent = game.Workspace:WaitForChild("MovingCloud"):WaitForChild("CoolCloud End") wait(3) attachment1.Parent = game.Workspace:WaitForChild("MovingCloud"):WaitForChild("CoolCloud Start") end
@@juicejosh1520 okay, your script looks fine, here's a checklist i want you to check, if you're still having problems im very sorry im this late i genuinely would like to help you so here; 1. Make sure attachment0 is in the platform that's moving 2. Make sure the attachment0 and attachment1 properties are equal to the correct attachments in both alignposition and alignorientation 3. AlignOrientation has rigidity enabled 4. AlignPosition has apply at center mass enabled 5. Make sure it isnt a local script 6. Maybe its a problem with the platforms' physical properties 7. attachment1 is inside the start platform when before the game starts 8. Make sure 3 and 4 are the only properties enabled besides like behavior enabled and archivable enabled i guess sorry if this didn't help, I did go back and made sure that it wasn't patched, so I don't know what the deal with yours is :(
the part will get stuck if there are any other objects in the way, is there any easy solution? you could make the parts that are in the way just make not collide with the platform but that would take some time and isn´t that easy
im reading the comments again and you could add another invisible part that goes around the part that gets in the way and move the platform (put the attachment in a script) to that extra invisible part before going to the end part