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 » Scripting Helpers
Home Search
 

Re: Give a Specific person a tool

Previous Thread :: Next Thread 
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
13 Jun 2014 07:38 PM
How do you do this!?!?!?
Report Abuse
Malcolt3 is not online. Malcolt3
Joined: 17 Dec 2009
Total Posts: 11442
13 Jun 2014 07:39 PM
tool:Clone().Parent = game.Players.PlayerName.Backpack

^^ set the above tool variable to wherever the tool is
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
13 Jun 2014 07:42 PM
Wow, I thought it would be a really long script xD that was simple, but where do I put the specific tool so people can't get it but me?
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
13 Jun 2014 07:43 PM
It doesnt work for me =/
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
13 Jun 2014 07:44 PM
Nvm, I got it to work but putting the tool in the server storage :P
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
13 Jun 2014 07:45 PM
OR NOT =/
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
13 Jun 2014 07:47 PM
It doesn't give me the tool, Do I put this in a script or local script? Where do I put it so It doesn't give the other players that tool too?
Report Abuse
Malcolt3 is not online. Malcolt3
Joined: 17 Dec 2009
Total Posts: 11442
13 Jun 2014 07:50 PM
put the tool wherever and set the tool variable to where you put the tool, serverstorage is fine

tool = game.ServerStorage.ToolName

put the code in a script either in the Workspace or in the ServerScriptService, NOT in a LocalScript
Report Abuse
Malcolt3 is not online. Malcolt3
Joined: 17 Dec 2009
Total Posts: 11442
13 Jun 2014 07:52 PM
this isn't going to work if you're playing in game, this is just the code to run to give the tool, if you want it to give you the tool when you join or whenever you respawn, it's going to take more code
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
13 Jun 2014 07:54 PM
Well, how much more code is it gonna take? Or atleast what kind of code do I have to do?
Report Abuse
Malcolt3 is not online. Malcolt3
Joined: 17 Dec 2009
Total Posts: 11442
13 Jun 2014 08:09 PM
http://wiki.roblox.com/index.php?title=PlayerAdded_%28Event%29
http://wiki.roblox.com/index.php?title=CharacterAdded_%28Event%29

I recommend reading both, try something like this:

game.Players.PlayerAdded:connect(function(player)
if player.Name == 'Soulv3' then
player.CharacterAdded:connect(function(character)
tool:Clone().Parent = player.Backpack
end)
end
end)


When a player joins, it checks if the player is you. If you are the player who has joined, it sets up an event whenever your character, the physical model of you, respawns. Whenever this happens, it clones the tool and puts it in your backpack.
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
14 Jun 2014 03:05 PM
Would the example you did work?
Report Abuse
Faxu is not online. Faxu
Joined: 08 Feb 2010
Total Posts: 2937
14 Jun 2014 03:23 PM
^^ Yes
Report Abuse
Faxu is not online. Faxu
Joined: 08 Feb 2010
Total Posts: 2937
14 Jun 2014 03:23 PM
Well first you would have to make a tool variable, but then, yes.
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
14 Jun 2014 03:29 PM
Oh, could you help me on the Gamepass script im trying to make, try to find it in the Script helpers forum.
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
15 Jun 2014 12:27 AM
Also, how would you remove the default tool from my Backpack/StarterPack?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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