I want to make a script that Pops up a gui when the player has completed more than 100 stages in 24 hours

How would i go about doing this??

The only thing i really need help with is referencing real life time

You can use os.time()

You can save the time they joined, then:

if TimeTheyStarted - TimeTheyEnded <= 86400 then --86400 is the amount of seconds in a day.
  --Woo get badge
end

You can either save their time with a datastore, or just save it as a variable as like

game.Players.PlayersAdded:Connect(function(plr)
 local TimeTheyStarted = os.time()
 
 --Make event here.
 Stage.Touched:Connect(function(ThingWhoTouched)
--Check if they made time, then do stuff
 end
end
1 Like