#time help

16 messages · Page 1 of 1 (latest)

proper finch
#

All credit goes to this gentleman on the DevForum, but one simple google search would find you a solution.

neat remnant
#

who do i add that to my script

#

i have a round system thingy

#

local Time = game.ReplicatedStorage.RoundData.Time

--SETTING--
local ITimeBeforeTeleport = 100
local IRoundTime = 100
local RoundTeleport = workspace.RoundTeleport
local RoundFinishedTeleport = workspace.RoundFinishedTeleport
--END--

local TimeBeforeTeleport = ITimeBeforeTeleport
local RoundTime = IRoundTime

Time.Value = ITimeBeforeTeleport

while true do
repeat
wait(1)
Time.Value -= 1
TimeBeforeTeleport -= 1
until TimeBeforeTeleport == 0

TimeBeforeTeleport = ITimeBeforeTeleport
Time.Value = RoundTime

game.ReplicatedStorage.TeleportPlayer:Fire(RoundTeleport)

repeat
    wait(1)
    Time.Value -= 1
    RoundTime -= 1
until RoundTime == 0

RoundTime = IRoundTime
Time.Value = ITimeBeforeTeleport

game.ReplicatedStorage.TeleportPlayer:Fire(RoundFinishedTeleport)

end

#

this

proper finch
#

Well, what you would do is:

local Time = 300
local TimeConversion = convertToHMS(Time)
print(TimeConversion)
neat remnant
#

wat

proper finch
#

Type three of these `

#

and put lua

#

and then press shift enter

#

and put three at the bottom

#

and code in the middle

neat remnant
#

im trying to change the script i just sent into minutes instead of seconds

proper finch
#

You are confusing me, read the DevForum post please.