Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

TextButton isnt becoming visible even though I own the gamepass?

Asked by 3 years ago

There isn't any errors in the script, and whenever I join the game and check if the thing is visible, it isn't, how do I make the TextButton become visible if I own the gamepass (which i do)

local mps = game:GetService("MarketplaceService")
local gamepassid = 23619124
local Player = game.Players.LocalPlayer

game.Players.PlayerAdded:Connect(function(Player)
    if mps:UserOwnsGamePassAsync(Player.UserId, gamepassid) then
        script.Parent.Text = "Owned"
        script.Parent.Parent.BlessYou.Visible = true
    end
end)
0
add me as friend on roblox johnoscarbhv1 137 — 3y
0
add the guy named Jak (iVmk3) Jakob_Cashy 79 — 3y

Answer this question