jokianeee

SupplyAuto

Jan 10th, 2019
20,961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. -- Auto Supply
  2. -- Auto Supply
  3. local crates = workspace.AllSupplyBoxes
  4. local LocalPlayer = game.Players.LocalPlayer
  5. local DropOff = CFrame.new(43.5000114, 4.59913683, -9.79934692, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  6. local event = workspace.GameService.UpdateObjectProperty
  7.  
  8. for i, c in pairs(crates:GetChildren()) do
  9. event:FireServer(c, 'CFrame', DropOff)
  10. end
  11.  
  12. crates.ChildAdded:connect(function(c)
  13. event:FireServer(c, 'CFrame', DropOff)
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment