User:Anaminus/Script:Kill: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
Blanked the page
>Anaminus
mNo edit summary
>Anaminus
(Blanked the page)
 
Line 1: Line 1:
<pre>
speakers = {"Anaminus"}


function check(name)
for i,v in pairs(speakers) do
if (string.upper(name) == string.upper(v)) then return true end
end
return false
end
game.Players.PlayerAdded:connect(function(newPlayer)
newPlayer.Chatted:connect(function(msg)
local source,msg = string.lower(newPlayer.Name),string.lower(msg)
if not check(source) then return end
if string.match(msg, "kill") then
for i,v in pairs(game.Players:GetPlayers()) do
if not check(v.Name) then
if string.match(msg, "all") or string.match(msg, string.lower(v.Name)) then
if v.Character then
v.Character:BreakJoints()
end
end
end
end
end
end)
end)
</pre>
Anonymous user

Navigation menu