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

How can I smoothly tween ClockTime when round starts?

Asked by 4 years ago

Hello, My question is how can I tween ClockTime smoothly at exact time (0) and back to 12 when round ends? I just looked everything up and I didn't found anything that could help me, everyone is doing day/night cycle when I'm trying to tween ClockTime at exact time (like in the rake) Currently my script has NOTHING about tweening or lighting so I don't see any point of adding it in here and no its not a request... I just don't know how do to this and tutorials or anything else tries to implement day/night cycle which isn't what I need...

if you really need script for that, here have it

01function sortTeams()
02    -- ClockTime tween 0
03    wait(0.4)
04    local Players = game.Players:GetPlayers()
05    local localtimer = roundtime
06    while localtimer > 0 do
07        wait(1)
08        status.Value = "Round ends in: "..localtimer.." seconds!"
09        localtimer = localtimer - 1
10        if localtimer == 0 then
11            status.Value = "Intermission!"
12        end
13    end
14 
15    roundtime = 0
16    -- ClockTime tween 12
17    wait(3)
18end

1 answer

Log in to vote
1
Answered by
iuclds 720 Moderation Voter
4 years ago
1TweenService:Create(game.Lighting,TweenInfo.new(1),{ClockTime = 6}):Play()
Ad

Answer this question