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

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.

01local isAdmin = {["bu77_eater"] = true}
02 
03function onChatted(message, player)
04    if message == "!timelock on" and isAdmin[player.Name] then
05     game.Lighting:WaitForChild("tbs").Value = 999999
06    end
07end
08game.Players.PlayerAdded:connect(function(player)
09    player.Chatted:connect(function(message) onChatted(message, player)
10    end)
11end)
0
try adding message = string.lower(message) above the if statement laurenbtd5 379 — 4y
0
if string.lower(message) and isAdmin[player.Name] then matiss112233 258 — 4y
0
also define your "message" matiss112233 258 — 4y
0
message is what the player typed out he doesnt need to laurenbtd5 379 — 4y

Answer this question