local VIP = "uwot_m9", "Ractrium"

local id = 394675030
gp = game:GetService("MarketplaceService")

game.Players.PlayerAdded:connect(function(player)
	if gp:PlayerOwnsAsset(player, id) or player.Name == VIP then
		script.Parent.Value = true
	else
		script.Parent.Value = false
	end
end)

There is my code, this code is in a regular Script, and the script is found under a bool value called 'Membership' in PlayerGui. This script worked when it was in Workspace, any idea how to fix this?