hey Devs I have been Working On A Daily Reward System And I Cant Transform the Seconds Into Hours/ Minutes / Seconds can you guys help me in it. my code is this
local Chest = game.Workspace.Chest
local Chest2 = game.Workspace.CHEST2
local Lower = Chest2.NameTag.Lowertext
local debounce = false
local drtime = 6*60*60
local dailyreward = 250
Lower.Text = dailyreward
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = plr
local cash = Instance.new("IntValue")
cash.Name = "Gold"
cash.Value = 50
cash.Parent = leaderstats
Chest.Touched:Connect(function()
if not debounce then
debounce = true
cash.Value = cash.Value + dailyreward
for i = drtime, 1, -1 do
Lower.Text = i
wait(1)
end
debounce = false
Lower.Text = dailyreward
end
end)
end) -- DONT MIND IT I KNOW ITS CRAPPY

4 comments
it does doe works as i want it to work
I don't understand what you want us to do
i Said I want the seconds to be in hours / minutes / seconds LIKE A TIMER on daily rewards
Yes thank you, it really helped when you repeated the exact same thing. Do you wonder how many seconds there is in one minute and one hour or what exactly is it you want?