|
| 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 |
|
|
| |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 10 Aug 2013 12:46 PM |
| Is the script disabled? :l |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Aug 2013 12:48 PM |
| no theres no check in the disabled box |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 10 Aug 2013 12:51 PM |
| the parent is the player right? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 10 Aug 2013 12:58 PM |
| Just put at the top script.Parent = workspace |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2013 01:06 PM |
| I think the script is already in the workspace |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 10 Aug 2013 01:07 PM |
It works, Tell you that much
|
|
|
| Report Abuse |
|
|
| |
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
| |
|
|
| 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 |
|
|
| |
|
|
| 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
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
| |
|
|
| 10 Aug 2013 01:21 PM |
| http://www.roblox.com/Test-place?id=34986933 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 10 Aug 2013 01:27 PM |
| LOL all I needed was a ) thank you it worked |
|
|
| Report Abuse |
|
|