of     1   

veyp
#214241934Thursday, April 13, 2017 3:41 PM GMT

advertising gamepasses through this gui selector in my game but I want to make it so if people have a gamepass it doesn't show them the gui how do I fix this script? local passid = 73###########l######a############### game:GetService('GamePassService') game.Players.PlayerAdded:connect(function(player) if GamePassService:PlayerHasPass(player, passid) then print("avoid ads") else while wait(10) do x = math.random(1, 6) if (x == 1) then script.Parent.ad1.Visible = true wait(29) script.Parent.ad1.Visible = false wait(1) elseif (x == 2) then script.Parent.ad2.Visible = true wait(29) script.Parent.ad2.Visible = false wait(1) elseif (x == 3) then script.Parent.ad3.Visible = true wait(29) script.Parent.ad3.Visible = false wait(1) elseif (x == 4) then script.Parent.ad4.Visible = true wait(29) script.Parent.ad4.Visible = false wait(1) elseif (x == 5) then script.Parent.ad5.Visible = true wait(29) script.Parent.ad5.Visible = false wait(1) elseif (x == 6) then script.Parent.ad6.Visible = true wait(29) script.Parent.ad6.Visible = false wait(1) end end end end)
veyp
#214242122Thursday, April 13, 2017 3:44 PM GMT

4iop
Xarbleed
#214242351Thursday, April 13, 2017 3:47 PM GMT

if you dont put the hashtags into the script and you put the actual script, you should be fine Xasix | Zaz-ix
veyp
#214242419Thursday, April 13, 2017 3:48 PM GMT

@xas there are no hashtags in the actual script it just got filtered idk y
veyp
#214242537Thursday, April 13, 2017 3:50 PM GMT

local passid = num local GamePassService = game:GetService('GamePassService') game.Players.PlayerAdded:connect(function(player) is unfiltered beginning
Xarbleed
#214243021Thursday, April 13, 2017 3:57 PM GMT

dont put num put the actual ID that might work Xasix | Zaz-ix
veyp
#214243685Thursday, April 13, 2017 4:09 PM GMT

@xas I know I just put num because the id kept getting filtered -_-
veyp
#214246252Thursday, April 13, 2017 4:54 PM GMT

b
LegendaryAntique
#214251842Thursday, April 13, 2017 6:13 PM GMT

it looks like your trying to code in lua but you know more c++ example: if (plr == "xd") then print'HES A XDDDDDDDDDDDDDDDDDDDDDDDDDDDD' end but im guessing you need to add this im not sure but it might work: you should declare Frame so its easier to work with but here: also if you dont want to declare the frame you could add in Frame in the script.Parent.FrameNameHere.adnumber.Visible = (TRUE OR FALSE :) ) maybe that would work but idk

    of     1