How to code a moving block in Roblox Studio

Опубликовано: 28 Ноябрь 2024
на канале: ShaboNeeno
178,915
5.1k

➡ UPDATE : May 1, 2022 - The moving block script still works, but since Roblox updated the physics, you won't be able to ride on the moving part. But you still can do a lot of cool stuff with it. If yours isn't working, make sure the middle part isn't anchored.

JOIN ME ON MY JOURNEY TO 100K SUBSCRIBERS
Subscribe👉🏾http://bit.ly/ShaboNeeno

How To Make A Sword In Roblox? Watch Here👉🏾   • How To Make A Sword In Roblox  

Roblox Tutorial Playlist ~ Watch Here👉🏾https://bit.ly/ROBLOXTutorial

Thanks for watching!

You can check your code here:

start = game.Workspace.MovingModel.Start
finish = game.Workspace.MovingModel.Finish
bodyposition = game.Workspace.MovingModel.Platform.BodyPosition

while true do
bodyposition.Position = start.Position
wait(2)
bodyposition.Position = finish.Position
wait(2)
end


---------------------------------------------------------------------------------------------------------

Music:
Leopard Print Elevator Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
creativecommons.org/licenses/by/3.0/

How to code a moving block in Roblox Studio


#RobloxStudio #RobloxStudioTutorial #RobloxTutorial