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 :) th-cam.com/video/z7fnxbnNyC8/w-d-xo.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
@@OGwarrd 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
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
Exactly what I needed. I will bookmark this, thank you very much!
am i the only one who can't hear a single thing this guy says
yes
Bro yes you can
no
How do I do it with a spinning brick??
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 :) th-cam.com/video/z7fnxbnNyC8/w-d-xo.htmlsi=NqBWnIvhQwnHTuqu
@@OGwarrd oh goshhhh 😂 i’m really bad at scripts ahahah by any chance r u able to do a commission for me for this train thing 😅
@@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
@@OGwarrd omg thanks! i’ll try it when i get back home!! n my bad i forgot to sub haha 😅
guys its only going to start does anybody have a fix?
the platform just falls
Thank you so much!
It doesn't bring my character with it
maybe you made it too fast, did you follow the tutorial exactly?
@@OGwarrd 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 :(
@@OGwarrd I figured out something. When the platform is narrow (3x11), it doesn't bring it but when the platform in wide (11x11) , it does bring me
@@juicejosh1520 im glad you got it figured out.
My character keeps falling off the platform and it's going slow
if you're having trouble with this one go to my latest tut
I got mine working but how do I change the speed?
did u watch till the end
nope. just did lol@@OGwarrd
Its only going to the start and not to the end
same cuz its not anchored
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
Yeah collision groups are kinda hard but thats the only way i can rlly think of
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
@@OGwarrd bro i think i did something wrong
i checked everything and everything is fine but its not working
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
attachment1.Parent = game.Workspace:WaitForChild("MovingPlatform"):WaitForChild("endz")
Is there a way to move union, i have been trying different tutorials non help
union.Position... union.CFrame...
@@OGwarrdhuh, didnt see you use postion of unit and CFrame in this tutorial..., sorry i am dumb with scripts
@@daissyplayz i didnt but unless im mistaken you can also just use a union instead of a part using this tutorial
@@daissyplayz unless you mean a model cause i could maybe make a vid on how to do that
@@OGwarrdi have tried it on standard roblox barrel, it is a union and moving tutorials work on it, but allowing player to move with it no, idk why
its not working when anchored