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: Pass Tool Script not working.

Previous Thread :: Next Thread 
RangeMeludE is not online. RangeMeludE
Joined: 07 Nov 2008
Total Posts: 10572
16 Apr 2013 11:11 AM
game.Players.PlayerAdded:connect(function(p)
if game:GetService("GamePassService"):UserHasPass(p, 112996493) then
repeat wait() until p:FindFirstChild("Backpack")
repeat wait() until p:FindFirstChild("StarterGear")
if not p.Backpack:FindFirstChild("Devastator") then
game.Lighting.Devastator:clone().Parent = p.StarterGear
game.Lighting.Devastator:clone().Parent = p.Backpack
end
end
end)


Any clues?
Report Abuse
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
16 Apr 2013 12:04 PM
Output?
Report Abuse
RangeMeludE is not online. RangeMeludE
Joined: 07 Nov 2008
Total Posts: 10572
16 Apr 2013 12:51 PM
Nothing.
Report Abuse
bigdaddy92 is not online. bigdaddy92
Joined: 17 Jan 2010
Total Posts: 1684
16 Apr 2013 12:53 PM
wait()

at the top of the script

Also, where is it parented?

-bigdaddy92, Professional Web Developer & Master Scripter
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
16 Apr 2013 12:58 PM
Just saying ,for the future,

There is something called WaitForChild()

It might help a bit, because you won't need repeat.

Example-

WaitForChild("PlayerGui")



|MassiveGman| Scripter & part time Professional Whistler
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
16 Apr 2013 12:59 PM
You could use it for something like-

game.Players.Player1:WaitForChild("PlayerGui")




|MassiveGman| Scripter & part time Professional Whistler
Report Abuse
RangeMeludE is not online. RangeMeludE
Joined: 07 Nov 2008
Total Posts: 10572
16 Apr 2013 01:05 PM
Nevermind, fixed it already!

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