Advertisement
Guest User

Asset Inserter

a guest
Sep 13th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. function insert(ID)
  2.     local p = game:GetService("InsertService"):LoadAsset(ID)
  3.     p.Parent = workspace
  4.     for i,v in pairs(p:GetChildren()) do
  5.         v.Parent = workspace
  6.     end
  7.     p:Destroy()
  8. end
  9.  
  10. print("Type in the command bar insert(ID)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement