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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Badge Checker Scipt

Previous Thread :: Next Thread 
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 10:23 AM
I have this badge checker scipt and I don't know why it won't work. Help would be appriecated.

function BadgeChecker(B)
local userid=B.userId
local badgeid= 119926071--Here the badge ID.--
if game:GetService("BadgeService"):UserHasBadge(userid, badgeid) then
pistol = game.Lighting["Traveler'sBag"]:clone()
pistol.Parent = player.Backpack--Here you can type in what happens.--
end
end

game.Players.PlayerAdded:connect(BadgeChecker)

The Traveler's bag is inside the lighting. I do own the Badge, and I tested the game as forgotoldacount in play mode not in test. I don't know whats wrong
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 10:49 AM
3:
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 11:25 AM
Bump
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
10 Aug 2013 11:32 AM
game.Players.PlayerAdded:connect(function(plr)
ID = plr.userId
badgeid = 119926071
if game:GetService("BadgeService"):UserHasBadge(ID, badgeid) then
travbag = game.Lighting["Traveler's Bag"]:clone() --I think you meant ["Traveler's Bag"] not ["Traveler'sBag"]
travbag.Parent = plr.Backpack --Player Wasnt Defined
game.Lighting["Traveler's Bag"]:clone().Parent = plr.StarterGear --Makes them spawn with it.
end
end
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 12:45 PM
The script didn't work. I checked the tool in the lighting and made sure everything was alright. I made sure I had the badge and did even more messing around. I'm not a scipter, so are you sure that is correct?
Report Abuse
ekogame1720 is not online. ekogame1720
Joined: 25 Mar 2011
Total Posts: 335
10 Aug 2013 12:46 PM
Is the script disabled? :l
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 12:46 PM
errr... I need checks
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 12:48 PM
no theres no check in the disabled box
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
10 Aug 2013 12:48 PM
lol mine works
Its 100% correct
The parent NEEDS to be workspace
and not disabled
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 12:51 PM
the parent is the player right?
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 12:55 PM
How do I get the parent in the workspace, and what is defined as the parent I can't see what is being defined as the parent with my basic understanding of scripting.
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
10 Aug 2013 12:58 PM
Just put at the top script.Parent = workspace
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 01:06 PM
I think the script is already in the workspace
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
10 Aug 2013 01:07 PM
It works,
Tell you that much
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 01:08 PM
It didn't seem to fix it
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
10 Aug 2013 01:10 PM
Stop trying in play solo
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 01:11 PM
The tool is in the lighting that it is suppose to give you.
I have the badge that it checks for.
I tested as forgotoldacount in play mode.

Are you sure it works? I don't see anything I did wrong
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 01:15 PM
It doesn't work .-.
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 01:16 PM
What if I make a empty game that is uncopylocked with the script and everything so you can tell me whats wrong.
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
10 Aug 2013 01:17 PM
to lazy.
fine
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 01:21 PM
http://www.roblox.com/Test-place?id=34986933
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
10 Aug 2013 01:24 PM
game.Players.PlayerAdded:connect(function(plr)
ID = plr.userId
badgeid = 119926071
if game:GetService("BadgeService"):UserHasBadge(ID, badgeid) then
travbag = game.Lighting["Traveler'sBag"]:clone()
travbag.Parent = plr.Backpack --Player Wasnt Defined
game.Lighting["Traveler'sBag"]:clone().Parent = plr.StarterGear --Makes them spawn with it.
end
end)
Report Abuse
forgotoldacount is not online. forgotoldacount
Joined: 24 Sep 2009
Total Posts: 10460
10 Aug 2013 01:27 PM
LOL all I needed was a ) thank you it worked
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