Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 06:14 AM |
Im trying to do so if a user got a t-shirt in his/hers t-shirt section they can buy a item in the BuyFrame. If they dont have it then the gui would be the VipNotFound instead
player = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent
function exit() wait(0) local Bs = game:GetService('BadgeService') if Bs:UserHasBadge(player.userId, 62911268) then script.Parent.BuyFrame.Visible = true else script.Parent.VipNotFound.Visible = true end script.Parent.MouseButton1Down:connect(exit)
|
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
| |
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 06:43 AM |
| i shall bump until some1 helps me >_< |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 07:45 AM |
| did but it didnt work. can you help me out?? |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
| |
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
| |
|
|
| 27 Jan 2012 10:03 AM |
player = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent
function exit() wait() local Bs = game:GetService("BadgeService")-- lol bs if Bs:UserHasBadge(player.userId, 62911268) then-- I haven't been able to use BadgeService either, I have a feeling it may be depricated script.Parent.BuyFrame.Visible = true else script.Parent.VipNotFound.Visible = true end script.Parent.MouseButton1Down:connect(exit)
~I am THE Forum Troll~ |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2012 10:04 AM |
woops messed up
function exit() wait() local Bs = game:GetService("BadgeService")-- lol bs if Bs:UserHasBadge(player.userId, 62911268) then-- I haven't been able to use BadgeService either, I have a feeling it may be depricated script.Parent.BuyFrame.Visible = true else script.Parent.VipNotFound.Visible = true end end script.Parent.MouseButton1Down:connect(exit)
~I am THE Forum Troll~ |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 10:30 AM |
that works but if i dont have the t-shirt the VipNotFound frame wont show. any1 help?? |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
| |
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
| |
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
| |
|
|
| 27 Jan 2012 11:19 AM |
Why don't you post the output if it doesn't work... Or the entire script...
「TheNewScripter」 |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 11:23 AM |
Here it is. See any problems??
player = script.Parent.Parent.Parent.Parent.Parent
function exit() wait() local Bs = game:GetService("BadgeService") if Bs:UserHasBadge(player.userId, 62911268) then script.Parent.BuyFrame.Visible = true else script.Parent.VipNotFound.Visible = true end end script.Parent.MouseButton1Down:connect(exit) |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2012 11:25 AM |
> Why don't you post the output if it doesn't work
I see no output. You said it didn't work, but you said nothing about output. Is there any output?
「TheNewScripter」 |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 11:28 AM |
no the output doesnt show anything but the VipNotFound frame wont be visible. Can it be anything with the the lines under else??
|
|
|
| Report Abuse |
|
|
|
| 27 Jan 2012 11:33 AM |
> but the VipNotFound frame wont be visible
Then that means that the user has the badge... Try going on an alternate account, A.K.A. make one real quick, and test it.
「TheNewScripter」 |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 11:34 AM |
its not for a badge. You can use the badge service for shirts too. And i got a test acc that i test on but the VipNotFound frame wont show anyway |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2012 11:35 AM |
Actually, it is for the badge... According to these lines of code, it is all based off if the person had the Badge or not.
if Bs:UserHasBadge(player.userId, 62911268) then script.Parent.BuyFrame.Visible = true else script.Parent.VipNotFound.Visible = true end
「TheNewScripter」 |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 11:38 AM |
Yeah but no badge got that Id. It´s for a shirt my friend made so i tested it whit that So you can use that function for shirts too |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2012 12:06 PM |
| @TheNew Yes, BadgeService works with clothes as well. |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 27 Jan 2012 12:23 PM |
| but it still wont work.. >_< |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
| |
|