Advertisement
3DCreator

Conveyor Script

Feb 28th, 2021
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local Conveyors = script.Parent:GetChildren()
  2.  
  3. for i = 1, #Conveyors do
  4.     if not Conveyors[i].ClassName == "Part" then return end
  5.     while wait(0.1) do
  6.         Conveyors[i].Velocity = Conveyors[i].CFrame.LookVector * Conveyors[i].Speed.Value
  7.     end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement