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: Should this work??

Previous Thread :: Next Thread 
Dajn is not online. 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 is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 06:25 AM
bump
Report Abuse
Dajn is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 06:43 AM
i shall bump until some1 helps me >_<
Report Abuse
Dajn is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 06:58 AM
bump >_>
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
27 Jan 2012 07:32 AM
[ Content Deleted ]
Report Abuse
Dajn is not online. 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 is not online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
27 Jan 2012 07:50 AM
ends.
Report Abuse
Dajn is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 07:55 AM
what??
Report Abuse
techepicface is not online. techepicface
Joined: 28 Jun 2011
Total Posts: 1180
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
techepicface is not online. techepicface
Joined: 28 Jun 2011
Total Posts: 1180
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 is not online. 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 is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 10:42 AM
bump >_<
Report Abuse
Dajn is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 11:05 AM
any1??
Report Abuse
Dajn is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 11:16 AM
slow forum today >_>
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
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 is not online. 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
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
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 is not online. 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
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
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 is not online. 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
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
27 Jan 2012 12:06 PM
@TheNew Yes, BadgeService works with clothes as well.
Report Abuse
Dajn is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 12:23 PM
but it still wont work.. >_<
Report Abuse
Dajn is not online. Dajn
Joined: 12 Feb 2008
Total Posts: 120
27 Jan 2012 01:38 PM
bump >_>
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