Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why doesn't my GUI become visible if the player owns a Gamepass?

Hey guys,

I've been wondering what I am missing in this script!

BadgeId = 160235804

game.Players.PlayerAdded:connect(function(p)
if game:GetService("BadgeService"):UserHasBadge(p.userId, BadgeId) then
script.Parent.Parent.Spawn.Visible = true
script.Parent.Parent.Parent.OwnedBikes.Bike2.Visible = true
else
script.Parent:remove()
wait(.01)
    end
end)

game.Workspace.ChildAdded:connect(respawned)

I don't see a problem with it but it should have worked. If anyone sees a problem I've overlooked, please say!

Cheers,

Michael

1 answer

You forgot to add the "respawned" function.

2 comments

0

Seeing that you signed up to Scripting Helpers today, most people tend to give edits aswell as the changes to the scripts needed. Some people are noobs at scripting!

0

True, but I didn't start helping people on the forums yesterday. All I did was follow the rules. The requirements of giving an answer was to give an explanation, thats exactly what I did. I appreciate your help though!

This discussion is preserved as it was. New answers, comments, and votes are closed.