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: Backpack issues,

Previous Thread :: Next Thread 
XIXRaVenXIX is not online. XIXRaVenXIX
Joined: 27 May 2012
Total Posts: 1426
18 Aug 2015 09:05 AM
So I tried scripting a gui button where on function it gathers all the players on the server and clone a tool called "Teams" in the serverstorage, and place them in the Backpack, but my issue here is I'm inexperienced with backpacks. So I can't get it to work.

function Give()
for _,v in pairs(game.Players:GetPlayers()) do
game.ServerStorage:findFirstChild("Team"):clone().Parent = Backpack
end
end



script.Parent.MouseButton1Click:connect(Give)

Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
18 Aug 2015 09:07 AM
:clone().Parent = v.Backpack --Remember you are iterating through the players and in this case "v" is the player and backpack is inside the player :D

while true do the do
Report Abuse
XIXRaVenXIX is not online. XIXRaVenXIX
Joined: 27 May 2012
Total Posts: 1426
18 Aug 2015 09:10 AM
Oh ok, Thanks a lot!
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
18 Aug 2015 09:14 AM
:)

while true do the do
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