--Takeshi's admin
function GET_PLAYER(NAME, plr)
local gPlayers = game:GetService("Players")
local NAME_TABLE = {}
NAME = NAME:lower()
if NAME ~= "all" then
for i,v in pairs(gPlayers:GetPlayers()) do local L_NAME = v.Name:lower() local F = L_NAME:find(NAME) if F == 1 then table.insert(NAME_TABLE, v.Name) end end
elseif NAME == "all" then
for i,v in pairs(gPlayers:GetPlayers()) do table.insert(NAME_TABLE, v.Name) end
elseif NAME == "me" then
return plr
end
return NAME_TABLE
end
--Takeshi's admin
commands = {
":kill me -- kills yourself",
":explode me -- still in beta",
":shutdown -- shuts down the server",
":ff me -- gives you an ff",
":unff me -- removes ur ff",
":punish me -- punishes you from the server",
":god me -- gives you god mode",
":freeze me -- freezes your character",
":freecam me -- gives you a freecam",
":unfreeze me -- unfreezes you",
":unfreecam me -- makes you back to normal",
":ungod me -- ungod's you",
":flash me -- gives you super speed",
":unflash me -- gives you normal speed",
":jp me -- gives you a high jump power",
":unjp me -- gives you normal jump power",
":superman me -- gives you inf health and super speed and jump power",
":unsuperman me -- unsuperman's you",
":kill all -- kills all players in game",
":kill others -- kills other players in game",
":invis me -- Makes you invisible",
":noob all -- makes a noob effect to everyone",
}
wait(0)
print("Thanks for using my script")
wait(0)
print("Made by - Takeshi199one")
wait(0)
print("Type :cmds for commands")
local Admins = {"Takeshi199one"} -- Put ur name HERE :D
local Prefix = ":" -- What ur command will start off
for i,v in pairs(Admins) do -- To get the Admins
game.Players[v].Chatted:connect(function(msg)-- Making so tables "{}" work :D
if msg:lower() == Prefix .. "shutdown" then -- it makes so that :kill mE workspace
workspace.Gravity = 0/0
print("game shutted down")
end
if msg:lower() == Prefix .. "ff me" then -- it makes so that :kill mE workspace
Instance.new("ForceField",game.Players[v].Character) -- Give a local player an ff
print("command done")
end
if msg:lower() == Prefix .. "unff me" then -- it makes so that :kill mE workspace
while wait() do -- this will remove all of the ff
game.Players[v].Character.ForceField:Destroy()
print("command done")
end
end
if msg:lower() == Prefix .. "punish me" then -- it makes so that :kill mE workspace
game.Players[v].Character.Parent = game.Lighting
print("punished player")
end
if msg:lower() == Prefix .. "kill me" then -- it makes so that :kill mE workspace
game.Players[v].Character:BreakJoints()
print("killed player")
end
if msg:lower() == Prefix .. "god me" then -- it makes so that :kill mE workspace
game.Players[v].Character.Humanoid.MaxHealth = math.huge
wait(1)
game.Players[v].Character.Humanoid.Health = math.huge
print("command done")
end
if msg:lower() == Prefix .. "explode me" then -- it makes so that :kill mE workspace
game.Players[v].Character.Torso:Explode()
end
if msg:lower() == Prefix .. "freeze me" then -- it makes so that :kill mE workspace
game.Players[v].Character.Torso.Anchored = true
print("freezed player")
end
if msg:lower() == Prefix .. "unfreeze me" then -- it makes so that :kill mE workspace
game.Players[v].Character.Torso.Anchored = false
prit("Unfreezed player")
end
if msg:lower() == Prefix .. "freecam me" then -- it makes so that :kill mE workspace
game.Players[v].Character.Torso.Anchored = true
game.Players[v].Character.HumanoidRootPart.Anchored = true
print("command done")
end
if msg:lower() == Prefix .. "unfreecam me" then -- it makes so that :kill mE workspace
game.Players[v].Character.Torso.Anchored = false
game.Players[v].Character.HumanoidRootPart.Anchored = false
print("command done")
end
if msg:lower() == Prefix .. "ungod me" then -- it makes so that :kill mE workspace
game.Players[v].Character.Humanoid.MaxHealth = 100
wait(1)
game.Players[v].Character.Humanoid.Health = 100
print("command done")
end
if msg:lower() == Prefix .. "flash me" then -- it makes so that :kill mE workspace
workspace[v].Humanoid.WalkSpeed = 170
print("flashed player")
end
if msg:lower() == Prefix .. "unflash me" then -- it makes so that :kill mE workspace
workspace[v].Humanoid.WalkSpeed = 16
print("unflashed player")
end
if msg:lower() == Prefix .. "jp me" then -- it makes so that :kill mE workspace
workspace[v].Humanoid.JumpPower = 174
print("command done")
end
if msg:lower() == Prefix .. "unjp me" then -- it makes so that :kill mE workspace
workspace[v].Humanoid.JumpPower = 60
print("command done")
end
if msg:lower() == Prefix .. "superman me" then -- it makes so that :kill mE workspace
workspace[v].Humanoid.JumpPower = 174
workspace[v].Humanoid.WalkSpeed = 170
game.Players[v].Character.Humanoid.MaxHealth = math.huge
wait(1)
game.Players[v].Character.Humanoid.Health = math.huge
print("command done")
end
if msg:lower() == Prefix .. "cmds" then -- it makes so that :kill mE workspace
for i,v in pairs(commands) do
print(v)
end
end
if msg:lower() == Prefix .. "unsuperman me" then -- it makes so that :kill mE workspace
workspace[v].Humanoid.JumpPower = 60
workspace[v].Humanoid.WalkSpeed = 16
game.Players[v].Character.Humanoid.MaxHealth = 100
wait(1)
game.Players[v].Character.Humanoid.Health = 100
print("command done")
end
if msg:lower() == Prefix .. "kill all" then -- it makes so that :kill mE workspace
for i, v in pairs(game.Players:GetPlayers()) do
if v.Character then
v.Character:BreakJoints()
end
wait()
end
print("killed everyone")
end
if msg:lower() == Prefix .. "kill others" then -- it makes so that :kill mE workspace
for i, v in pairs(game.Players:GetPlayers()) do
if v.Name ~= game.Players.LocalPlayer.Name then
if v.Character then
v.Character:BreakJoints()
end
wait()
end
end
print("killed others")
end
if msg:lower() == Prefix .. "invis me" then -- it makes so that :kill mE workspace
game.Workspace.Takeshi199one["Head"].Transparency = 1
game.Workspace.Takeshi199one["Torso"].Transparency = 1
game.Workspace.Takeshi199one["Left Arm"].Transparency = 1
game.Workspace.Takeshi199one["Right Arm"].Transparency = 1
game.Workspace.Takeshi199one["Left Leg"].Transparency = 1
game.Workspace.Takeshi199one["Right Leg"].Transparency = 1
game.Workspace.Takeshi199one.Head.face:Remove()
game.Workspace.Takeshi199one.GameHeadphones:remove()
game.Workspace.Takeshi199one.TwitchHair:remove()
game.Workspace.Takeshi199one.Twitch150KGlasses:remove()
for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do
if v:IsA("Hat") then
v:Destroy()
end
end
print("Invised player")
end
if msg:lower() == Prefix .. "noob all" then -- it makes so that :kill mE workspace
local playerLeaderstats = {}
for i, v in pairs(game.Players:GetChildren()) do
table.insert(playerLeaderstats, v)
end
for i, v in pairs(playerLeaderstats) do
pe = Instance.new("ParticleEmitter",v.Character.Torso)
pe.Texture = "http://www.roblox.com/asset/?id=13270026"
pe.VelocitySpread = 50
se = Instance.new("ParticleEmitter",v.Character.Torso)
se.Texture = "http://www.roblox.com/asset/?id=25597054"
se.VelocitySpread = 50
fe = Instance.new("ParticleEmitter",v.Character.Torso)
fe.Texture = "http://www.roblox.com/asset/?id=30680635"
fe.VelocitySpread = 50
end
print("Noobed all")
end
end)
end