oofive2
|
  |
| Joined: 08 May 2011 |
| Total Posts: 1608 |
|
|
| 10 Jul 2015 04:26 PM |
I have this script where when I take an item from the lighting and clone it, then bring the cloned to said players inventory when he chats a command, I don't know how to bring it to my inventory though..
This is what I have: game.Players.PlayerAdded:connect(function(player) if player.Name == "DannyInfect" or player.Name == "oofive2" then player.Chatted:connect(function(msg) if msg == "tools/" then game.Lighting.F3X:Clone() end end) end end)
-/I ᴄᴀɴ'ᴛ ᴅʀᴏᴡɴ ᴍʏ ᴅᴇᴍᴏɴs ᴛʜᴇʏ ᴋɴᴏᴡ ʜᴏᴡ ᴛᴏ sᴡɪᴍ\- |
|
|
| Report Abuse |
|
|
ganger800
|
  |
| Joined: 06 Dec 2012 |
| Total Posts: 427 |
|
|
| 10 Jul 2015 04:28 PM |
I think you need this: game.Lighting.F3X:Clone().Parent = player.Backpack |
|
|
| Report Abuse |
|
|
oofive2
|
  |
| Joined: 08 May 2011 |
| Total Posts: 1608 |
|
|
| 10 Jul 2015 04:34 PM |
didnt work?
-/I ᴄᴀɴ'ᴛ ᴅʀᴏᴡɴ ᴍʏ ᴅᴇᴍᴏɴs ᴛʜᴇʏ ᴋɴᴏᴡ ʜᴏᴡ ᴛᴏ sᴡɪᴍ\- |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 10 Jul 2015 04:38 PM |
local admins = {"DannyInfect","oofive2"} local tools = game.ServerStorage.F3X
game.Players.PlayerAdded:connect(function(player) for i,v in next, admins do if player.Name == v then player.Chatted:connect(function(msg) if msg == "tools/" then local toolsClone = tools:Clone() toolsClone.Parent = player.Backpack end end) end end end)
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|