yimy

Untitled

Aug 25th, 2019
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local user = "yimy"
  2. local prefix = ";"
  3. game.Players:WaitForChild(user).Chatted:connect(function(msg)
  4. if msg:sub(1,7) == "load"..prefix then
  5. local typeof = "Tool"
  6. local typeoff = "Hat"
  7. local model = "Model"
  8. local scr = "Script"
  9. local gui = "ScreenGui"
  10. if game:GetService("InsertService"):LoadAsset(tonumber(msg:sub(8))) then
  11. local object = game:GetService("InsertService"):LoadAsset(tonumber(msg:sub(8)))
  12. if object:GetChildren()[1]:IsA(typeof)or(typeoff)or(model) then
  13. pcall(function()
  14. object.Parent = workspace
  15. object:MoveTo(workspace[user].Head.Position)
  16. end)
  17. end
  18. if object == script then
  19. pcall(function()
  20. object.Parent = workspace
  21. end)
  22. end
  23. if object == gui then
  24. gui.Parent = game.Players[user].PlayerGui
  25. end
  26. end
  27. end
  28. end)
RAW Paste Data