Advertisement
Boom_fpv

Moving part roblox lua

May 15th, 2020
1,169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. -- Instructions: --
  2. -- 1. Create a model and name it MovingPart --
  3. -- 2. create a part inside the model and name it Part --
  4. -- 3. Add a script inside the model --
  5. -- 4. Copy and paste this script into the script --
  6. -- Made by Boom_fpv --
  7. -- Subscribe to Boom Fpv Roblox --
  8.  
  9. MovingPart = script.Parent
  10.  
  11. while true do
  12.  wait(0)
  13.  for i = 1,50 do
  14.   MovingPart:TranslateBy(Vector3.new(-1,0,0)) -- Goes straight
  15.   wait()
  16.  end
  17.  for i = 1,50 do
  18.   MovingPart:TranslateBy(Vector3.new(1,0,0)) -- Goes back
  19.   wait()
  20.  end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement