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 help *quick fix*

Previous Thread :: Next Thread 
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
10 Jul 2016 11:35 AM
so when the player leaves, I want the script to check if in the players backpack, they have a tool that is numbered 1 - 48, and just print that number that is returned

this is what I have so far

game.Players.PlayerRemoving:connect(function(player)
--player.Backpack so op
end)


Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
10 Jul 2016 11:44 AM
pls


Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
10 Jul 2016 11:51 AM
1


Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
10 Jul 2016 11:55 AM
2


Report Abuse
Sir_ka is not online. Sir_ka
Joined: 23 Apr 2015
Total Posts: 1646
10 Jul 2016 11:59 AM
--i think that would be something like this:
hi1 = 1
hi2 = 2
hi3 = 3

game.Players.PlayerRemoving:connect(function(player)
for i,v in pairs(game.Players:GetChildren())do
if v.Character.BackPack.hi1 == true then
print("hi1 is in backpack")
else
if v.Character.BackPack.hi2 == true then
print("hi2 is in backpack")
else
if v.Character.BackPack.hi2 == true then
print("hi3 is in the backpack")

end
end

end

end
end)

--not that sure though im not the best at scripting

Report Abuse
Sir_ka is not online. Sir_ka
Joined: 23 Apr 2015
Total Posts: 1646
10 Jul 2016 12:01 PM
sorry i made a mistake at line 7 change BackPack to Backpack

Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
10 Jul 2016 12:06 PM
thank you


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