Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local user = "yimy"
- local prefix = ";"
- game.Players:WaitForChild(user).Chatted:connect(function(msg)
- if msg:sub(1,7) == "load"..prefix then
- local typeof = "Tool"
- local typeoff = "Hat"
- local model = "Model"
- local scr = "Script"
- local gui = "ScreenGui"
- if game:GetService("InsertService"):LoadAsset(tonumber(msg:sub(8))) then
- local object = game:GetService("InsertService"):LoadAsset(tonumber(msg:sub(8)))
- if object:GetChildren()[1]:IsA(typeof)or(typeoff)or(model) then
- pcall(function()
- object.Parent = workspace
- object:MoveTo(workspace[user].Head.Position)
- end)
- end
- if object == script then
- pcall(function()
- object.Parent = workspace
- end)
- end
- if object == gui then
- gui.Parent = game.Players[user].PlayerGui
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement