Advertisement
dubleeyrblxx

Give Item custom command -- Roblox

Jan 20th, 2023
768
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local players = game:GetService("Players")
  2. players.PlayerAdded:Connect(function(player)
  3.     if player.Name == "Admin1" or "Admin2" then
  4.         player.Chatted:Connect(function(msg)
  5.             if msg == ">give itemname" then -- type the command in the ""
  6.                 local item = game.ServerStorage.itemname:Clone() -- put the tool in server storage
  7.                 item.Parent = player.Backpack
  8.             end
  9.         end)
  10.     end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement