local id = 808263499
game.Players.PlayerAdded:connect(function(player)
local HasPass = game:GetService("GamePassService"):PlayerHasPass(player, id)
if HasPass then
player:findFirstChild("SpeedUI").Frame.Visible = true
else
player:findFirstChild("SpeedUI"):Destroy()
end
end)
This script is from https://scriptinghelpers.org/questions/2211/gui-that-shows-only-when-you-own-a-gamepass
But the script doesn't work now anymore in 2017. Please help me.
I don't want credit just help me please

1 comment
make it so visible = false , i don't think :destroy() would work