Question About Dev Products & Learning

I’m looking to make a system where you pay robux via a dev product and then you get a special feature for a week. I want to learn this system just for future reference if I make it.

Thanks,
Ben


local MarketPlace = game:GetService("MarketPlaceService") -- promt the user the product,
local weeklytime = os.Time("%A") -- Full weekday name, e.g "Wednesday", you could get the the day that they bought it and find the week later inside the script, a bit confusing but.

Basically using os.Time and MarketPlaceService.
& Datastoreservice to save their feature and once the time is over it will remove feature.