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: How to give a certain tool to a player?

Previous Thread :: Next Thread 
TricoGames is not online. TricoGames
Joined: 28 Aug 2015
Total Posts: 87
25 Sep 2016 04:51 PM
##########################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
25 Sep 2016 04:51 PM
tool:Clone().Parent = player.Backpack
Report Abuse
TricoGames is not online. TricoGames
Joined: 28 Aug 2015
Total Posts: 87
25 Sep 2016 04:52 PM
Sorry about the hashtags, I have no idea what happened. But I was asking how to give a tool to a specific player. Dunno if it depends where I put the tool in besides workspace.

for _, plr in pairs(game.Players:GetPlayers()) do
if plr.Name == "Player1" then script.Parent = plr.Player1.Backpack
end
end
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
25 Sep 2016 04:57 PM
what is wrong with doing

tool:Clone().Parent = game.Players.Player1
???

that is a waste of a for loop
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
25 Sep 2016 04:58 PM
Player1.Backpack

what I meant was that you did not need to use a for loop since all you want to do is give it one player
Report Abuse
Burglered is not online. Burglered
Joined: 14 Jul 2011
Total Posts: 962
25 Sep 2016 05:00 PM
Correction: Octothorpe not hashtags


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