Joriangames

Moving Platform W/ Moving Player

Dec 21st, 2023
7,678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. -- Moving Part With Moving Player by BLOXIANCODE youtube.com/c/BloxianCode
  2. -- Tutorial: https://youtu.be/6jr8uquKcd0
  3.  
  4. local part = script.Parent
  5.  
  6. local fromPosition = part.Position + Vector3.new(-20,5,0)
  7. local endPosition = part.Position + Vector3.new(20,5,0)
  8.  
  9. while true do
  10.     part.AlignPosition.Position = fromPosition
  11.     wait(5)
  12.     part.AlignPosition.Position = endPosition
  13.     wait(5)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment