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

I am not sure if this works?

Asked by 10 years ago

I am unsure if I did this script right;

Note: Script edited from another user, credit to user

admin={"TheeDeathCaster"}

Game.Players.PlayerAdded:connect(function(Player)
if Player~=0 then
for i=1,#admin do
if string.lower(Player.Name)==string.lower(admin[i])then
Player.Chatted:connect(function(msg)
if string.sub(string.lower(1,5),msg) == "kill/" then
findplayer=game:FindService("Players"):FindFirstChild(string.lower(msg,5))
findplayer.Character:BreakJoints()
end end)end end end end)
0
CRINGE!!! TheeDeathCaster 2368 — 7y

1 answer

Log in to vote
0
Answered by 10 years ago

It looks about right to me but, the best way to see if it works is to run the game and try for your self.

Ad

Answer this question