Soulv3
|
  |
| Joined: 26 Apr 2014 |
| Total Posts: 63 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 26 Apr 2014 |
| Total Posts: 63 |
|
| |
|
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
|
  |
| Joined: 26 Apr 2014 |
| Total Posts: 63 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 26 Apr 2014 |
| Total Posts: 63 |
|
|
| 14 Jun 2014 03:05 PM |
| Would the example you did work? |
|
|
| Report Abuse |
|
|
Faxu
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 2937 |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|