of     1   

LbpPlayer34
#111083075Sunday, August 25, 2013 10:53 PM GMT

How can I make it so the game checks if someone has a VIP gamepass then the gui would be visible?
ZachBloxx
#111083312Sunday, August 25, 2013 10:55 PM GMT

Gui > Frame > LocalScript local Player = game.Players.LocalPlayer local PassId = 1337 function CheckPass() local check = false if game:GetService("GamePassService"):PlayerHasPass(Player, PassId) then check = true end return check end if CheckPass() then script.Parent.Visible = true end
Friaza
#111087502Sunday, August 25, 2013 11:34 PM GMT

--Player = script.Parent.Parent.Parent.Parent (Probably) / game.Players.LocalPlayer (for LocalScript) PassId = "" if game:GetService("GamePassService"):PlayerHasPass(Player, PassId) == true then script.Parent.Visible = true end ---- Note: If you want to do V.I.P shirts or something else then replace the GamePass line with:- if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, PassId) == true then
ZachBloxx
#111087692Sunday, August 25, 2013 11:35 PM GMT

@Friaza, an ID is an interger, not a string.
LbpPlayer34
#111087988Sunday, August 25, 2013 11:38 PM GMT

Thanks guys. I already used zachs though, thanks though Friaza!
Iterations
#111088018Sunday, August 25, 2013 11:38 PM GMT

local Player = game.Players.LocalPlayer local PassId = 1337 function CheckPass() local check = false if game:GetService("GamePassService"):PlayerHasPass(Player, PassId) then check = true end return check end if CheckPass() then script.Parent.Visible = true end That can be: local Player = game.Players.LocalPlayer local PassId = 1337 script.Parent.Visible = game:GetService("GamePassService"):PlayerHasPass(Player, PassId)
ZachBloxx
#111088210Sunday, August 25, 2013 11:40 PM GMT

@Iterations, shudup i leik return
Iterations
#111088446Sunday, August 25, 2013 11:42 PM GMT

local Player = game.Players.LocalPlayer local PassId = 1337 function CheckPass() return game:GetService("GamePassService"):PlayerHasPass(Player, PassId) end script.Parent.Visible = CheckPass() there u has return
cntkillme
#111088568Sunday, August 25, 2013 11:43 PM GMT

Ilererations wins
ZachBloxx
#111088627Sunday, August 25, 2013 11:44 PM GMT

ok fine u win dis one but ima pwn u nxt time
cntkillme
#111088728Sunday, August 25, 2013 11:44 PM GMT

I win: script.Parent.Visible =game:GetService("GamePassService"):PlayerHasPass(game.Players.LocalPlayer, 1337)
Iterations
#111088777Sunday, August 25, 2013 11:45 PM GMT

for the sake of OP i didnt put the variables inside the thingy
ZachBloxx
#111088994Sunday, August 25, 2013 11:47 PM GMT

u pwn me here so i rank u up in da group kk?
Iterations
#111089065Sunday, August 25, 2013 11:48 PM GMT

woo

    of     1