generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Questionnn

Previous Thread :: Next Thread 
oofive2 is not online. 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 is not online. 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 is not online. oofive2
Joined: 08 May 2011
Total Posts: 1608
10 Jul 2015 04:34 PM
didnt work?


-/I ᴄᴀɴ'ᴛ ᴅʀᴏᴡɴ ᴍʏ ᴅᴇᴍᴏɴs ᴛʜᴇʏ ᴋɴᴏᴡ ʜᴏᴡ ᴛᴏ sᴡɪᴍ\-
Report Abuse
TimeTicks is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image