local gamepass = 16789429
local market = game:GetService("MarketplaceService")

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(Character)
		if market:UserOwnsGamePassAsync(player.UserId, gamepass) then
			local replicatedStorage = game:GetService("ReplicatedStorage")
			replicatedStorage.Remotes.Lift.OnServerEvent:Connect(function(player)
				player.leaderstats.Views.Value = player.leaderstats.Views.Value + 2
			end)

			replicatedStorage.Remotes.Lift2.OnServerEvent:Connect(function(player)
				player.leaderstats.Views.Value = player.leaderstats.Views.Value + 4
			end)
		end
	end)
end)

else 
	print("haha poor, u dont have gamepass")
	local replicatedStorage = game:GetService("ReplicatedStorage")

	replicatedStorage.Remotes.Lift.OnServerEvent:Connect(function(player)
		player.leaderstats.Views.Value = player.leaderstats.Views.Value + 1
	end)

	replicatedStorage.Remotes.Lift2.OnServerEvent:Connect(function(player)
		player.leaderstats.Views.Value = player.leaderstats.Views.Value + 2
	end)
end)

Dont mind the print i was bored and needed to see where the script failed