Why won't my script pause the time with the given command?
Asked by
4 years ago Edited 4 years ago
So, I have a time script where tbs, a value, is set to 3.5. I have this script to set the wait time between each minute to 1000000.
01 | local isAdmin = { [ "bu77_eater" ] = true } |
03 | function onChatted(message, player) |
04 | if message = = "!timelock on" and isAdmin [ player.Name ] then |
05 | game.Lighting:WaitForChild( "tbs" ).Value = 999999 |
08 | game.Players.PlayerAdded:connect( function (player) |
09 | player.Chatted:connect( function (message) onChatted(message, player) |