Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg:sub(1,7) == "insert!" then
- local typeof = "Tool"
- local typeoff = "Hat"
- 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) then
- pcall(function()
- object.Parent = workspace
- object:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
- end)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement