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.

local isAdmin = {["bu77_eater"] = true} 

function onChatted(message, player)
    if message == "!timelock on" and isAdmin[player.Name] then
     game.Lighting:WaitForChild("tbs").Value = 999999
    end
end
game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(message) onChatted(message, player) 
    end)
end)
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