Categories > Coding > Lua >
Giving Overhead GUI to Player that owns Gamepass won't work... [ROBLOX Studio]
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!
a former active and known member of the WRD community, but im kinda just a meme now
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
Cancel
Post
💕 Thanks for the rep: chr1srbx Monkey_D_Luffy Kanva Funtimesgetfunner Hiroku Vilictus Delta Rsploits Haxim kiwidevelopment Xero
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.
Cancel
Post
a former active and known member of the WRD community, but im kinda just a meme now
Replied
hm maybe do
local platypus = game:GetService("Players")
if game:GetService("GamePassService"):PlayerHasPass(platypus.LocalPlayer, id) then
--code (unindent the if statement)
end
Cancel
Post
💕 Thanks for the rep: chr1srbx Monkey_D_Luffy Kanva Funtimesgetfunner Hiroku Vilictus Delta Rsploits Haxim kiwidevelopment Xero
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post