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

Why have my admin commands stopped workings?

Asked by 7 years ago
Edited 7 years ago

I have a admin script and it has worked great but for the past 15 mins it has stopped working. I have reverted the place back to 3 hours while I was still working on it and it isn't working there either. Here is the script

local isAdmin = {["potatoboy9999"] = true, ["RightfulFluff2"] = true, ["diamondflash"] = true, ["12coocoo"] = true, ["Player1"] = true}

function onChatted(message, speaker)
    if message == ":DReset" and isAdmin[speaker.Name] then
        speaker.Character:BreakJoints()
    end
end

game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(message) onChatted(message, player) end)
end)

This is my reset command and I have a few other commands and they all worked and now none of them do so I am really confused why this happened...

0
I have the same problem 130363 67 — 7y
0
Ok OldPalHappy told me that it was just a new but, now when I run my command and respawn my chat goes away. :/ User#15461 0 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Try testing it in-game. I had the same problem, and it turned out to be that the chatted event isn't working correctly sometimes in studio.

0
Ok, I got a new bug now when I run that command and respawn my chat is gone :/ User#15461 0 — 7y
Ad

Answer this question