Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i refer to time started since server started?

Asked by 6 years ago

I wanted to create a part that spawns after 10 seconds after the server started. Is there a way to do it?

3 answers

Log in to vote
1
Answered by 6 years ago
local timespawn = 10
wait(timespawn)
local part = Instance.new("Part")
part.Parent = workspace
0
That can work, but if under an event or function that can be called by a player, this will just wait 10 seconds and do the code. User#19524 175 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Hi Jamar,

Yes, you can easily get the time since the server started by using time(). time() will return the amount of seconds since the server started.

I hope I helped and have a wonderful day/night.

Thanks,

Best regards,

~~ KingLoneCat

0
I already sent him this but his question and description are different it's so confusing. magicguy78942 238 — 6y
0
Oh, lol. KingLoneCat 2642 — 6y
0
Hey King, how do you make the font different on 'I hope I helped and have a wonderful day/night.' and the body of your answer? User#19524 175 — 6y
0
I use #. Font size changes happen from 1 - 3 #s. One # is biggest, Two #s is the second biggest, and three #s is the third biggest. Font size only changes up to 3 of them. 4 #s make an italicized light greyish text. KingLoneCat 2642 — 6y
0
Also, you see how my body text looks kinda clean? That's because I used 3 #s. I feel that 3 #s looks better than just text. KingLoneCat 2642 — 6y
Log in to vote
0
Answered by 6 years ago
local dgt = 'DistributedGameTime'

game.Workspace:GetPropertyChangedSignal(dgt):Connect(function()
    -- do code 
end)

Answer this question