Help on making a Limited Time Offer Feature

Hello there, I am working on a game in which I would like to implement a Limited Time Offer kind of feature. This is a great way of making Robux since its “limited time” which attracts players to purchase it. A lot of big games have it including Simulators, Tycoons, and many more.

The only issue is that I have no knowledge of scripting. Making a UI is easy but scripting it would be very hard for me. I know that it would have to be a Developer Product and not a game pass.

I am wondering if anyone could lead me in the right direction or lead me to a video as a tutorial video would be much better as I know nothing about scripting.

The kind of Limited time offer Ill be adding into my game will be a 12 or 24-hour deal where it’s a starter pack, including stuff like starter cash, a sword, and a speed coil.

1 Like

Hey there!

I got the script for you it might not be the best but this is the first post I made on the DevForum!

Its a 24-hour system using epoch its pretty easy to use:

-- // Made By: https://talent.roblox.com/creators/172896708

--[[ -- // Make Sure To Keep The Timezone In Mind, You Can Also Do It Like This:

https://www.epochconverter.com/

local EventStart = 1650649444

local EventEnd = 1650649474

--]]

local EventStart = os.time({year = 2022, month = 4, day = 22, hour = 17, min = 48, sec = 0}) -- // Change It To Whatever Time You Want It To Be!

local EventEnd = os.time({year = 2022, month = 4, day = 22, hour = 17, min = 50, sec = 0}) -- // Change It To Whatever Time You Want It To Be!

local EventCountdownString = "----"

local StartCountdown = false

while wait() do
	warn(EventCountdownString, " | End: "..os.difftime(EventEnd, os.time()),  " | Start: "..os.difftime(os.time(), EventStart))

	if StartCountdown then
		local MainCountdown = os.difftime(EventEnd, os.time())

		local Seconds = MainCountdown % 60
		local Minutes = math.floor(MainCountdown % (60*60) / 60)
		local Hours = math.floor(MainCountdown % (60*60*24) / (60*60))
		local Days = math.floor(MainCountdown % (60*60*24*30) / (60*60*24))

		EventCountdownString = Days .. "D:" .. Hours .. "H:" .. Minutes .. "M:" .. Seconds .. "S"

		if MainCountdown <= 0 then 
			EventCountdownString = "Ended!"
			break 
		end
	else
		if os.difftime(os.time(), EventStart) >= 0 then
			EventCountdownString = "Started!"
			StartCountdown = true
		end
	end
end