Advertisement
smallalex2005

test

Jan 28th, 2020
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. game.Players.LocalPlayer.Chatted:connect(function(msg)
  2. if msg:sub(1,7) == "insert!" then
  3. local typeof = "Tool"
  4. local typeoff = "Hat"
  5. if game:GetService("InsertService"):LoadAsset(tonumber(msg:sub(8))) then
  6. local object = game:GetService("InsertService"):LoadAsset(tonumber(msg:sub(8)))
  7. if object:GetChildren()[1]:IsA(typeof)or(typeoff) then
  8. pcall(function()
  9. object.Parent = workspace
  10. object:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
  11. end)
  12. end
  13. end
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement