Categories > Coding > Lua >

Giving Overhead GUI to Player that owns Gamepass won't work... [ROBLOX Studio]

Hectique

Hectique

Posts: 1307

Threads: 186

Joined: Nov, 2019

Reputation: 14

Posted

Hey guys. I am making a game in ROBLOX, and I am making an OverHead GUI system... In the script, I am trying to make it so if someone owns a certain GamePass, (In this case, a VIP Pass), they will get a tag.

 

Here's the WHOLE entire script's code.


https://gyazo.com/ba64c202727b04e160e0d66c720329ec 

 

The thing is, it works with UserID. The UserID one works. So if I were to set it to someone with the corresponding UserID, it would work.

 

It's only when I try to give it to someone with A gamepass. This doesn't mean the whole script doesn't work, because UserID one is working fine, but the Gamepass tag won't give Can someone help me?

 

Thanks and stay safe!

  • 0

a former active and known member of the WRD community, but im kinda just a meme now

WendoJ

WendoJ

vip

Posts: 318

Threads: 29

Joined: Mar, 2020

Reputation: 40

Replied

Pretty sure the code is supposed to be:

if game:GetService("GamePassService"):PlayerHasPass(Player, id) then

       --insert code

end

 

 

Also, is this going to be the game? https://web.roblox.com/games/5414685195/Easy-Fun-Obby-COMING-SOON

  • 0

Hectique

Hectique

Posts: 1307

Threads: 186

Joined: Nov, 2019

Reputation: 14

Replied

@WendoJ Thanks for the Help!

 

Also, yes that is going to be the game.

 

Edit - It's still not working. Here's the code.

 


https://gyazo.com/4e9ef17fb555e1e6a48b75ccf31df292 

  • 0

a former active and known member of the WRD community, but im kinda just a meme now

WendoJ

WendoJ

vip

Posts: 318

Threads: 29

Joined: Mar, 2020

Reputation: 40

Replied

hm maybe do

local platypus = game:GetService("Players")

 

if game:GetService("GamePassService"):PlayerHasPass(platypus.LocalPlayer, id) then

--code  (unindent the if statement)

end

 

 

 

 

 

 

 

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )