Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.25 KB | None | 0 0
  1. local admins = {"tindmikael"}
  2. local banlist = {"killerlvl900"}
  3. local partadmins = {}
  4. local creatorisadmin = true
  5. local friendsofcreatoraremods = true
  6. local modscripters = false
  7. local servah = game:findFirstChild("NetworkServer")
  8. if servah ~= nil then
  9. script.Parent = game
  10. end --Stops this script from getting cleaned out if inserted.
  11.  
  12.  
  13. --[[
  14.  
  15. This is QwertygiyII's NEW game-administrator script. This script is meant
  16. to replace Person299's now-failing Admin Script. This one has new features,
  17. as well as loved old ones. I hope you like it. If you wish to examine
  18. or add commands, skip to function OnChatted by pressing Ctrl+F.
  19.  
  20. HOW TO SET UP: See the Admins table? Just like in Person299's, insert the people
  21. that you want to be game administrators there. If you set the creatorisadmin
  22. value to true, then the owner of the place will be an admin. If you set the
  23. friendsofcreatoraremods value to true, then people who are friends of the
  24. owner will be partadmins/moderators.
  25.  
  26. Speaking of moderators, if you only want some people to not have access to
  27. the Ban, Kick, loopkill, Admin, Unadmin, God, and other 'strict' commands,
  28. put their name in the Partadmins table. If you don't want them to access the
  29. script builder command (c/), set the modscripters value to false, or say
  30. noscripting ingame. To reallow them in-game, say allowscripting.
  31.  
  32. Anybody who you want to be unable to join your game, insert into the Banlist.
  33.  
  34. List of commands with how to use them: Scroll to the bottom of the script.
  35.  
  36. --]]
  37.  
  38. for E = 1, #admins do --Wait... E = MC^2, and I'm pretty sure MC^2 ~= 1...
  39. for q = 1, #partadmins do
  40. if admins[E] == partadmins[q] then
  41. table.remove(partadmins, q)
  42. end
  43. end
  44. table.insert(partadmins, admins[E])
  45. end
  46. --This way all the main admins can access the nonstrict commands too.
  47.  
  48. function badName(object)
  49. local namez = string.lower(object.Name)
  50. local secure = true
  51. if string.find(namez, "antiban") or string.find(namez, "anti-ban") or string.find(namez, "orb") or string.find(namez, "eyeball") or string.find(namez, "eye-ball") then
  52. secure = false
  53. end
  54. if object.className == "Message" or object.className == "Hint" then
  55. local text = string.lower(object.Text)
  56. if string.find(text, "antiban") or string.find(text, "anti-ban") or string.find(text, "orb") or string.find(text, "eyeball") or string.find(text, "eye-ball") or string.find(text, "banned") or string.find(text, "kicked") or string.find(text, "the server will end") or string.find(text, "hack") then
  57. secure = false
  58. end end
  59. if secure == false then return true else return false end end
  60.  
  61. local tools = {}
  62. local Tewls = game.Lighting:findFirstChild("Tools")
  63. if Tewls == nil then
  64. Tewls = Instance.new("Model")
  65. Tewls.Parent = game.Lighting
  66. Tewls.Name = "Tools"
  67. else
  68. local toolz = Tewls:getChildren()
  69. for q = 1, #toolz do
  70. if toolz[q]:IsA("Tool") or toolz[q]:IsA("HopperBin") then
  71. table.insert(tools, toolz[q])
  72. end end end
  73.  
  74. function checkChildren(object) --Thanks to sncplay42 for help on this function.
  75. if badName(object) then
  76. wait()
  77. object:Remove()
  78. end
  79. pcall(function()
  80. if object:IsA("Tool") or object:IsA("HopperBin") then
  81. local alreadygotit = false
  82. for q = 1, #tools do
  83. if tools[q].Name == object.Name then
  84. alreadygotit = true
  85. end end
  86. if alreadygotit == false then
  87. local objecttwo = object:clone()
  88. table.insert(tools, objecttwo)
  89. objecttwo.Parent = game.Lighting.Tools
  90. end end end)
  91. if pcall(function() object:GetChildren() end) then --makes sure GetChildren won't error
  92. for i, v in pairs(object:GetChildren()) do
  93. checkChildren(v)
  94. end end end
  95.  
  96. game.Workspace.DescendantAdded:connect(function(item)
  97. if badName(item) then item:remove(); checkChildren(game) end
  98. end)
  99.  
  100. checkChildren(game)
  101.  
  102.  
  103. function findplayer(name,speaker) --This function by Person299.
  104. if string.lower(name) == "all" then
  105. local chars = { }
  106. local c = game.Players:GetChildren()
  107. for i =1,#c do
  108. if c[i].className == "Player" then
  109. table.insert(chars,c[i])
  110. end end
  111. return chars
  112. elseif string.sub(string.lower(name),1,9) == "nonadmins" then
  113. local nnum = 0
  114. local chars = { }
  115. local c = game.Players:GetChildren()
  116. for i=1,#c do
  117. local isadmin = false
  118. for i2 =1,#admins do
  119. if admins[i2] == c[i].Name then
  120. isadmin = true
  121. end end
  122. for i3 = 1, #partadmins do
  123. if partadmins[i3] == c[i].Name then
  124. isadmin = true
  125. end end
  126. if isadmin == false then
  127. nnum = nnum + 1
  128. table.insert(chars,c[i])
  129. end end
  130. if nnum == 0 then
  131. return 0
  132. else
  133. return chars
  134. end
  135. elseif string.sub(string.lower(name),1,6) == "admins" then
  136. local anum = 0
  137. local chars = { }
  138. local c = game.Players:GetChildren()
  139. for i=1,#c do
  140. for i2 =1,#admins do
  141. if admins[i2] == c[i].Name then
  142. anum = anum + 1
  143. table.insert(chars,c[i])
  144. end end
  145. for i3 = 1, #partadmins do
  146. if partdmins[i3] == c[i].Name then
  147. anum = anum + 1
  148. table.insert(chars,c[i])
  149. end end end
  150. if anum == 0 then
  151. return 0
  152. else
  153. return chars
  154. end
  155. elseif string.sub(string.lower(name),1,6) == "random" then
  156. while true do
  157. local c = game.Players:GetChildren()
  158. local r = math.random(1,#c)
  159. if c[r].className == "Player" then
  160. return { c[r] }
  161. end end
  162. elseif string.sub(string.lower(name),1,6) == "guests" then
  163. local gnum = 0
  164. local chars = { }
  165. local c = game.Players:GetChildren()
  166. for i=1,#c do
  167. if string.sub(c[i].Name,1,5) == "Guest" then
  168. gnum = gnum + 1
  169. table.insert(chars,c[i])
  170. end end
  171. if gnum == 0 then
  172. return 0
  173. else
  174. return chars
  175. end
  176. elseif string.sub(string.lower(name),1,5) == "team " then
  177. local theteam = nil
  178. local tnum = 0
  179. if game.Teams ~= nil then
  180. local c = game.Teams:GetChildren()
  181. for i =1,#c do
  182. if c[i].className == "Team" then
  183. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
  184. theteam = c[i]
  185. tnum = tnum + 1
  186. end end end
  187. if tnum == 1 then
  188. local chars = { }
  189. local c = game.Players:GetChildren()
  190. for i =1,#c do
  191. if c[i].className == "Player" then
  192. if c[i].TeamColor == theteam.TeamColor then
  193. table.insert(chars,c[i])
  194. end end end
  195. return chars
  196. end end
  197. return 0
  198. elseif string.lower(name) == "me" then
  199. local person299 = { speaker }
  200. return person299
  201. elseif string.lower(name) == "others" then
  202. local chars = { }
  203. local c = game.Players:GetChildren()
  204. for i =1,#c do
  205. if c[i].className == "Player" then
  206. if c[i] ~= speaker then
  207. table.insert(chars,c[i])
  208. end end end
  209. return chars
  210. else
  211. local chars = { }
  212. local commalist = { }
  213. local ssn = 0
  214. local lownum = 1
  215. local highestnum = 1
  216. local foundone = false
  217. while true do
  218. ssn = ssn + 1
  219. if string.sub(name,ssn,ssn) == "" then
  220. table.insert(commalist,lownum)
  221. table.insert(commalist,ssn - 1)
  222. highestnum = ssn - 1
  223. break
  224. end
  225. if string.sub(name,ssn,ssn) == "," then
  226. foundone = true
  227. table.insert(commalist,lownum)
  228. table.insert(commalist,ssn)
  229. lownum = ssn + 1
  230. end end
  231. if foundone == true then
  232. for ack=1,#commalist,2 do
  233. local cnum = 0
  234. local char = nil
  235. local c = game.Players:GetChildren()
  236. for i =1,#c do
  237. if c[i].className == "Player" then
  238. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
  239. char = c[i]
  240. cnum = cnum + 1
  241. end end end
  242. if cnum == 1 then
  243. table.insert(chars,char)
  244. end end
  245. if #chars ~= 0 then
  246. return chars
  247. else
  248. return 0
  249. end
  250. else
  251. local cnum = 0
  252. local char = nil
  253. local c = game.Players:GetChildren()
  254. for i =1,#c do
  255. if c[i].className == "Player" then
  256. if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
  257. char = {c[i]}
  258. cnum = cnum + 1
  259. end end end
  260. if cnum == 1 then
  261. return char
  262. elseif cnum == 0 then
  263. Message("That player is not found in this server.",speaker, false)
  264. return 0
  265. elseif cnum > 1 then
  266. Message("That name is ambiguous.",speaker, false)
  267. return 0
  268. end end end end
  269.  
  270.  
  271.  
  272.  
  273. function Message(text, speakery, isglobal)
  274. if isglobal == true then
  275. local m = Instance.new("Message")
  276. m.Parent = game.Workspace
  277. m.Text = speakery.Name .. ": " .. text
  278. wait(3)
  279. m:remove()
  280. else
  281. local t = Instance.new("TextButton")
  282. local s = Instance.new("ScreenGui")
  283. s.Parent = speakery.PlayerGui
  284. t.Size = UDim2.new(1,0,1,0)
  285. t.BackgroundTransparency = 0.5
  286. t.TextColor3 = Color3.new(1,1,1)
  287. t.FontSize = "Size14"
  288. t.Parent = game.Workspace
  289. t.TextWrap = true
  290. t.Text = "Administrative Script" .. ": " .. text
  291. t.Parent = s
  292. wait(3)
  293. t:remove()
  294. s:remove()
  295. end end --Since it saves line space, Imma stick with Person299's tradition of one-line ends.
  296.  
  297. function Spawn(ch)
  298. print(ch.Name .. " has spawned.")
  299. local p = game.Players:getPlayerFromCharacter(ch)
  300. local loopy = p:findFirstChild("OhBoyyouareintroublenowsoyouaregettinglopkiledbiebaddschpeling")
  301. if loopy ~= nil then
  302. ch:breakJoints()
  303. ch.Humanoid.Health = -9001 --BELOW NEGATIVE 9000! What? I like funny scripting.
  304. end
  305. local powar = p:findFirstChild("ThEaWSoMepOwERofdOoMiSYouRsNaO!")
  306. if powar ~= nil then
  307. ch.Humanoid.MaxHealth = math.huge
  308. ch.Humanoid.Health = ch.Humanoid.MaxHealth
  309. local ff = Instance.new("ForceField")
  310. ff.Name = "SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism"
  311. ff.Parent = ch
  312. local fire = Instance.new("Fire")
  313. fire.Size = 15
  314. fire.Heat = 0
  315. fire.Name = "ImaWalkinTalkinBreathinBallOfFire"
  316. fire.Parent = ch.Torso
  317. end
  318. local ff = ch:findFirstChild("SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism")
  319. if ff == nil then
  320. local tehvalue = p:findFirstChild("TheSuperAwsomeGlowin'ExplosionDefenseProtectorMechanismJustGotBetter")
  321. if tehvalue ~= nil then
  322. ff = Instance.new("ForceField")
  323. ff.Name = "SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism"
  324. ff.Parent = p.Character
  325. end end end
  326.  
  327. function CreateScript(source, parent)
  328. local thenewscript = script:findFirstChild("Script")
  329. if thenewscript ~= nil then
  330. local newscript = thenewscript:clone()
  331. local value = Instance.new("StringValue")
  332. value.Name = "StringValue"
  333. value.Value = source
  334. value.Parent = newscript
  335. newscript.Name = "PlayerScript"
  336. if parent ~= nil then
  337. newscript.Parent = parent
  338. else
  339. newscript.Parent = game.Workspace
  340. end
  341. else
  342. Message("ERROR: C/ FUNCTION WILL NOT WORK.", speaker, false)
  343. end end
  344.  
  345.  
  346. function OnChatted(message, speaker)
  347. for q = 1, #admins do
  348. if string.lower(admins[q]) == string.lower(speaker.Name) then
  349. --Now we make the part of the script that makes it effective for administrative purposes!
  350.  
  351.  
  352. if string.sub(string.lower(message), 1, 5) == "kill/" then
  353. local killee = findplayer(string.sub(string.lower(message), 6), speaker)
  354. if killee ~= 0 then
  355. for q = 1, #killee do
  356. killee[q].Character.Humanoid.Health = 0
  357. end end end
  358.  
  359. if string.sub(string.lower(message), 1, 8) == "explode/" then
  360. local bewm = findplayer(string.sub(string.lower(message), 9), speaker)
  361. if bewm ~= 0 then
  362. for q = 1, #bewm do
  363. local ka = Instance.new("Explosion")
  364. ka.Parent = bewm[q].Character.Torso
  365. ka.Position = bewm[q].Character.Torso.Position
  366. ka.BlastRadius = 3
  367. ka.BlastPressure = 9000001 --ITS OVAR 9 MILLION! :L
  368. end end end
  369.  
  370. if string.sub(string.lower(message), 1, 5) == "kick/" then
  371. local kickee = findplayer(string.sub(string.lower(message), 6), speaker)
  372. local ouch = false
  373. if kickee ~= 0 then
  374. for q = 1, #kickee do
  375. for w = 1, #admins do
  376. if string.lower(admins[w]) == string.lower(kickee[q].Name) then
  377. ouch = true
  378. end end
  379. if ouch == false then
  380. kickee[q]:remove()
  381. else
  382. Message(kickee[q].Name .. " is an admin and cannot be kicked.", speaker, false)
  383. end
  384. wait()
  385. ouch = false
  386. end end end
  387.  
  388. if string.sub(string.lower(message), 1, 4) == "ban/" then
  389. local kickee = findplayer(string.sub(string.lower(message), 5), speaker)
  390. local ouch = false
  391. if kickee ~= 0 then
  392. for q = 1, #kickee do
  393. for w = 1, #admins do
  394. if string.lower(admins[w]) == string.lower(kickee[q].Name) then
  395. ouch = true
  396. end end
  397. if ouch == false then
  398. kickee[q]:remove()
  399. table.insert(serverbanned, kickee[q].Name)
  400. else
  401. Message(kickee[q].Name .. " is an admin and cannot be banned.", speaker, false)
  402. end
  403. wait()
  404. ouch = false
  405. end end end
  406.  
  407. if string.sub(string.lower(message),1,6) == "unban/" then
  408. if string.sub(string.lower(message),7) == "all" then
  409. for i=1,serverbanned do
  410. table.remove(serverbanned,i)
  411. end
  412. else
  413. local n = 0
  414. local o = nil
  415. for i=1,#serverbanned do
  416. if string.find(string.lower(serverbanned[i]),string.sub(message,7)) == 1 then
  417. n = n + 1
  418. o = i
  419. end end
  420. if n == 1 then
  421. local name = serverbanned[o]
  422. table.remove(serverbanned,o)
  423. Message( name .. " has been unbanned.", speaker, false)
  424. elseif n == 0 then
  425. Message("That player is not found in the banlist.", speaker, false)
  426. elseif n > 1 then
  427. Message("That name is ambiguous in the banlist.", speaker, false)
  428. end end end
  429.  
  430. if string.sub(string.lower(message), 1, 9) == "loopkill/" then
  431. local endofplayer = nil
  432. local istimed = true
  433. local loopkillee = nil
  434. for q = 10, 100 do
  435. if string.sub(string.lower(message), q, q) == "/" then
  436. endofplayer = q
  437. break
  438. elseif string.sub(string.lower(message), q, q) == "" then
  439. istimed = false
  440. break
  441. end end
  442. if istimed == false then
  443. loopkillee = findplayer(string.sub(string.lower(message), 10), speaker)
  444. else
  445. loopkillee = findplayer(string.sub(string.lower(message), 10, endofplayer - 1), speaker)
  446. end
  447. if loopkillee ~= 0 then
  448. for q = 1, #loopkillee do
  449. local powar = loopkillee[q]:findFirstChild("ThEaWSoMepOwERofdOoMiSYouRsNaO!")
  450. if powar ~= nil then
  451. powar:remove()
  452. end
  453. local loopy = Instance.new("StringValue")
  454. loopy.Name = "OhBoyyouareintroublenowsoyouaregettinglopkiledbiebaddschpeling"
  455. loopy.Value = "MWAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHACK!" --Oh, come on. I couldn't help it.
  456. loopy.Parent = loopkillee[q]
  457. loopkillee[q].Character:breakJoints()
  458. loopkillee[q].Character.Humanoid.Health = -9001 --Again, couldn't help it.
  459. if istimed == true then
  460. CreateScript("wait(" .. string.sub(string.lower(message), endofplayer + 1) .. "); game.Players." .. loopkillee[q].Name .. "." .. loopy.Name .. ":remove(); script:remove()", script)
  461. end end end end
  462.  
  463. if string.sub(string.lower(message), 1, 11) == "unloopkill/" then
  464. local relieved = findplayer(string.sub(string.lower(message), 12), speaker)
  465. if relieved ~= 0 then
  466. for q = 1, #relieved do
  467. local loopy = relieved[q]:findFirstChild("OhBoyyouareintroublenowsoyouaregettinglopkiledbiebaddschpeling")
  468. if loopy ~= nil then
  469. loopy:remove()
  470. else
  471. Message("That player is not loopdieing.", speaker, false)
  472. end end end end
  473.  
  474. if string.sub(string.lower(message), 1, 6) == "admin/" then
  475. local newmod = findplayer(string.sub(string.lower(message), 7), speaker)
  476. local yuck = false
  477. if newmod ~= 0 then
  478. for q = 1, #newmod do
  479. for w = 1, #partadmins do
  480. if newmod[q].Name == partadmins[w] then
  481. yuck = true
  482. end
  483. end
  484. if yuck == false then
  485. table.insert(partadmins, newmod[q].Name)
  486. Message(newmod[q].Name .. " has been made a Moderator in this server.", speaker, false)
  487. else
  488. Message(newmod[q].Name .. " is a Moderator already.", speaker, false)
  489. end end end end
  490.  
  491. if string.sub(string.lower(message),1,8) == "unadmin/" then
  492. local ouchitis = false
  493. if string.sub(string.lower(message),9) == "all" then
  494. for i=1,partadmins do
  495. table.remove(partadmins,i)
  496. end
  497. else
  498. local n = 0
  499. local o = nil
  500. for i=1,#partadmins do
  501. if string.find(string.lower(partadmins[i]),string.sub(message,9)) == 1 then
  502. n = n + 1
  503. o = i
  504. end end
  505. if n == 1 then
  506. local name = partadmins[o]
  507. for E = 1, #admins do --Again... I'm pretty sure E ~= 1...
  508. if string.lower(admins[E]) == string.lower(name) then
  509. ouchitis = true
  510. end end
  511. if ouchitis == false then
  512. table.remove(partadmins,o)
  513. Message( name .. " has been unadminned.", speaker, false)
  514. else
  515. Message("That player is a main Admin and cannot be unadminned.", speaker, false)
  516. end
  517. elseif n == 0 then
  518. Message("That player is not found in the moderator list.", speaker, false)
  519. elseif n > 1 then
  520. Message("That name is ambiguous in the moderator list.", speaker, false)
  521. end end end
  522.  
  523. if string.sub(string.lower(message), 1, 4) == "god/" then
  524. local powerful = findplayer(string.sub(string.lower(message), 5), speaker)
  525. if powerful ~= 0 then
  526. for q = 1, #powerful do
  527. local loopkilled = powerful[q]:findFirstChild("OhBoyyouareintroublenowsoyouaregettinglopkiledbiebaddschpeling")
  528. if loopkilled ~= nil then
  529. loopkilled:remove()
  530. end
  531. local powar = powerful[q]:findFirstChild("ThEaWSoMepOwERofdOoMiSYouRsNaO!")
  532. if powar == nil then
  533. powar = Instance.new("StringValue")
  534. powar.Name = "ThEaWSoMepOwERofdOoMiSYouRsNaO!"
  535. powar.Value = "OVAR 9,000,000!" --It is worth a lot. Which is why it's a strict command.
  536. powar.Parent = powerful[q]
  537. powerful[q].Character.Humanoid.MaxHealth = math.huge
  538. powerful[q].Character.Humanoid.Health = powerful[q].Character.Humanoid.MaxHealth
  539. local ff = powerful[q].Character:findFirstChild("SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism")
  540. if ff == nil then
  541. ff = Instance.new("ForceField")
  542. ff.Name = "SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism"
  543. ff.Parent = powerful[q].Character
  544. end
  545. local fire = powerful[q].Character.Torso:findFirstChild("ImaWalkinTalkinBreathinBallOfFire")
  546. if fire == nil then
  547. fire = Instance.new("Fire")
  548. fire.Size = 15
  549. fire.Heat = 0
  550. fire.Name = "ImaWalkinTalkinBreathinBallOfFire"
  551. fire.Parent = powerful[q].Character.Torso
  552. end
  553. else
  554. Message(powerful[q].Name .. " has already been affected by this command.", speaker, false)
  555. end end end end
  556.  
  557. if string.sub(string.lower(message), 1, 6) == "ungod/" then
  558. local powerful = findplayer(string.sub(string.lower(message), 7), speaker)
  559. if powerful ~= 0 then
  560. for q = 1, #powerful do
  561. local powar = powerful[q]:findFirstChild("ThEaWSoMepOwERofdOoMiSYouRsNaO!")
  562. if powar ~= nil then
  563. powar:remove()
  564. local ff = powerful[q].Character:findFirstChild("SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism")
  565. if ff ~= nil then
  566. ff:remove()
  567. end
  568. local fire = powerful[q].Character.Torso:findFirstChild("ImaWalkinTalkinBreathinBallOfFire")
  569. if fire ~= nil then
  570. fire:remove()
  571. end
  572. powerful[q].Character.Humanoid.MaxHealth = 100
  573. powerful[q].Character.Humanoid.Health = 100
  574. else
  575. Message(poweful[q].Name .. " cannot be affected by that command.", speaker, false)
  576. end end end end
  577.  
  578. if string.sub(string.lower(message), 1, 7) == "insert/" then
  579. local happehdude = findplayer(string.sub(string.lower(message), 8), speaker)
  580. if happehdude ~= 0 then
  581. for q = 1, #happehdude do
  582. local i = game:getService("InsertService"):LoadAsset(46143202)
  583. if i ~= nil then
  584. game:getService("InsertService"):Insert(i)
  585. i.BuildInsert.Parent = happehdude.Backpack
  586. wait()
  587. i:remove()
  588. else
  589. Message("Insert tool not loading; check to see if you are online.", speaker, false)
  590. end end end end
  591.  
  592. if string.sub(string.lower(message), 1, 11) == "noscripting" then
  593. modscripters = false
  594. end
  595.  
  596. if string.sub(string.lower(message), 1, 14) == "allowscripting" then
  597. modscripters = true
  598. end
  599.  
  600. --End of strict commands
  601.  
  602. end
  603. end
  604.  
  605. for w = 1, #partadmins do
  606. if string.lower(partadmins[w]) == string.lower(speaker.Name) then
  607.  
  608. --Beginning of nonstrict (moderator) commands.
  609.  
  610. if string.sub(string.lower(message), 1, 2) == "m/" then
  611. Message(string.sub(message, 3), speaker, true)
  612. end
  613.  
  614. if string.sub(string.lower(message), 1, 2) == "c/" then
  615. if modscripters == true then
  616. CreateScript(string.sub(message, 3), game.Workspace)
  617. else
  618. local allowed = false
  619. for q = 1, #admins do
  620. if admins[q] == speaker.Name then
  621. CreateScript(string.sub(message, 3), game.Workspace)
  622. allowed = true
  623. end
  624. end
  625. if allowed == false then
  626. Message("You do not have the ability to use this command at this time.", speaker, false)
  627. end
  628. end
  629. end
  630.  
  631. if string.sub(string.lower(message), 1, 5) == "clean" then
  632. local scripts = game.Workspace:getChildren()
  633. for q = 1, #scripts do
  634. if scripts[q].className == "Script" and scripts[q].Name == "PlayerScript" then
  635. scripts[q]:remove()
  636. end end end
  637.  
  638. if string.sub(string.lower(message), 1, 3) == "ff/" then
  639. local glower = findplayer(string.sub(string.lower(message), 4), speaker)
  640. if glower ~= 0 then
  641. for q = 1, #glower do
  642. local ff = glower[q].Character:findFirstChild("SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism")
  643. if ff == nil then
  644. ff = Instance.new("ForceField")
  645. ff.Name = "SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism"
  646. ff.Parent = glower[q].Character
  647. local tehvalue = Instance.new("StringValue")
  648. tehvalue.Name = "TheSuperAwsomeGlowin'ExplosionDefenseProtectorMechanismJustGotBetter"
  649. tehvalue.Value = "MWAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHACK!" --:P
  650. tehvalue.Parent = glower[q]
  651. else
  652. Message(glower[q].Name .. "already has a Force Field", speaker, false)
  653. end end end end
  654.  
  655. if string.sub(string.lower(message), 1, 5) == "unff/" then
  656. local glower = findplayer(string.sub(string.lower(message), 6), speaker)
  657. if glower ~= 0 then
  658. for q = 1, #glower do
  659. local ff = glower[q].Character:findFirstChild("SuperAwsomeGlowin'ExplosionDefenseProtectorMechanism")
  660. if ff ~= nil then
  661. ff:remove()
  662. else
  663. Message(glower[q].Name .. "does not have a Force Field", speaker, false)
  664. end end end end
  665.  
  666. --Start of mostly copied segment.
  667. --This, Give/, and findplayer() are the only commands straight-out copied from Person299.
  668. if string.sub(string.lower(message),1,7) == "change/" then
  669. local danumber1 = nil
  670. local danumber2 = nil
  671. for i = 8,100 do
  672. if string.sub(message,i,i) == "/" then
  673. danumber1 = i
  674. break
  675. elseif string.sub(message,i,i) == "" then
  676. Message("Command failed.", speaker, false)
  677. break
  678. end end
  679. if danumber1 == nil then return end
  680. for i =danumber1 + 1,danumber1 + 100 do
  681. if string.sub(message,i,i) == "/" then
  682. danumber2 = i
  683. break
  684. elseif string.sub(message,i,i) == "" then
  685. Message("Command failed.", speaker, false)
  686. break
  687. end end
  688. if danumber2 == nil then return end
  689. local player = findplayer(string.sub(string.lower(message),8,danumber1 - 1),speaker)
  690. if player ~= 0 then
  691. for i = 1,#player do
  692. local ls = player[i]:FindFirstChild("leaderstats")
  693. if ls ~= nil then
  694. local it = nil
  695. local itnum = 0
  696. local c = ls:GetChildren()
  697. for i2 = 1,#c do
  698. if string.find(string.lower(c[i2].Name),string.sub(string.lower(message),danumber1 + 1,danumber2 - 1)) == 1 then
  699. it = c[i2]
  700. itnum = itnum + 1
  701. end end
  702. if itnum == 1 then
  703. it.Value = string.sub(string.lower(message),danumber2 + 1)
  704. else
  705. Message("Command failed.", speaker, false)
  706. end
  707. else
  708. Message("Command failed.", speaker, false)
  709. end end end end
  710.  
  711.  
  712. if string.sub(string.lower(message),1,5) == "give/" then
  713. checkChildren(game)
  714. local danumber1 = nil
  715. for i = 6,100 do
  716. if string.sub(message,i,i) == "/" then
  717. danumber1 = i
  718. break
  719. elseif string.sub(message,i,i) == "" then
  720. Message("Command failed.", speaker, false)
  721. break
  722. end end
  723. if danumber1 == nil then return end
  724. local it = nil
  725. local all = true
  726. if string.sub(string.lower(message),danumber1 + 1,danumber1 + 4) ~= "all" then
  727. all = false
  728. local itnum = 0
  729. local c = game.Lighting.Tools:GetChildren()
  730. for i2 = 1,#c do
  731. if string.find(string.lower(c[i2].Name),string.sub(string.lower(message),danumber1 + 1)) == 1 and (c[i2]:IsA("Tool") or c[i2]:IsA("HopperBin")) then
  732. it = c[i2]
  733. itnum = itnum + 1
  734. end end
  735. if itnum ~= 1 then Message("Command failed.", speaker, false); return end
  736. else
  737. all = true
  738. end
  739. local player = findplayer(string.sub(string.lower(message),6,danumber1 - 1),speaker)
  740. if player ~= 0 then
  741. for i = 1,#player do
  742. local bp = player[i]:FindFirstChild("Backpack")
  743. if bp ~= nil then
  744. if all == false then
  745. it:clone().Parent = bp
  746. else
  747. for i2 = 1,#tools do
  748. tools[i2]:clone().Parent = bp
  749. end end end end end end
  750. --End of mostly copied segment.
  751.  
  752. --That's actually the end of the effective part of this script.
  753. --NOW I GET TO MAKE THE FUN PART(S)!!! :D
  754.  
  755. if string.sub(string.lower(message), 1, 5) == "fire/" then
  756. local flamer = nil
  757. local nocolor = false
  758. local endofplayer = nil
  759. local endofred = nil --End of red. Not Endo Fred.
  760. local endofblue = nil
  761. for z = 6, 100 do
  762. if string.sub(string.lower(message), z, z) == "/" then
  763. endofplayer = z
  764. break
  765. elseif string.sub(string.lower(message), z, z) == "" then
  766. Message("Color not entered; default color chosen.", speaker, false)
  767. break
  768. end end
  769. if endofplayer == nil then
  770. nocolor = true
  771. else
  772. for x = endofplayer + 1, endofplayer + 100 do
  773. if string.sub(string.lower(message), x, x) == "/" then
  774. endofred = x
  775. break
  776. elseif string.sub(string.lower(message), x, x) == "" then
  777. Message("Command failed.", speaker, false)
  778. break
  779. end end
  780. if endofred == nil then return end
  781. for c = endofred + 1, endofred + 100 do
  782. if string.sub(string.lower(message), c, c) == "/" then
  783. endofblue = c
  784. break
  785. elseif string.sub(string.lower(message), c, c) == "" then
  786. Message("Command failed.", speaker, false)
  787. break
  788. end end
  789. if endofblue == nil then return end
  790. end
  791. if not nocolor then
  792. flamer = findplayer(string.sub(string.lower(message), 6, endofplayer - 1), speaker)
  793. else
  794. flamer = findplayer(string.sub(string.lower(message), 6), speaker)
  795. end
  796. if flamer ~= 0 then
  797. for q = 1, #flamer do
  798. local oldfire = flamer[q].Character.Torso:findFirstChild("ImaWalkinTalkinBreathinBallOfFire")
  799. if oldfire ~= nil then oldfire:remove() end
  800. local fire = Instance.new("Fire")
  801. fire.Name = "ImaWalkinTalkinBreathinBallOfFire"
  802. fire.Heat = 5
  803. fire.Size = 7
  804. if nocolor == false then
  805. fire.Color = Color3.new(tonumber(string.sub(string.lower(message), endofplayer + 1, endofred - 1)) * -1, tonumber(string.sub(string.lower(message), endofred + 1, endofblue - 1)) * -1, tonumber(string.sub(string.lower(message), endofblue + 1)) * - 1)
  806. --Now THAT's complicated coloring.
  807. end
  808. fire.SecondaryColor = fire.Color --Not so complicated.
  809. fire.Parent = flamer[q].Character.Torso
  810. end end end
  811.  
  812. if string.sub(string.lower(message), 1, 8) == "bigfire/" then
  813. local flamer = nil
  814. local nocolor = false
  815. local endofplayer = nil
  816. local endofred = nil --End of red. Not Endo Fred.
  817. local endofblue = nil
  818. for z = 9, 100 do
  819. if string.sub(string.lower(message), z, z) == "/" then
  820. endofplayer = z
  821. break
  822. elseif string.sub(string.lower(message), z, z) == "" then
  823. Message("Color not entered; default color chosen.", speaker, false)
  824. break
  825. end end
  826. if endofplayer == nil then
  827. nocolor = true
  828. else
  829. for x = endofplayer + 1, endofplayer + 100 do
  830. if string.sub(string.lower(message), x, x) == "/" then
  831. endofred = x
  832. break
  833. elseif string.sub(string.lower(message), x, x) == "" then
  834. Message("Command failed.", speaker, false)
  835. break
  836. end end
  837. if endofred == nil then return end
  838. for c = endofred + 1, endofred + 100 do
  839. if string.sub(string.lower(message), c, c) == "/" then
  840. endofblue = c
  841. break
  842. elseif string.sub(string.lower(message), c, c) == "" then
  843. Message("Command failed.", speaker, false)
  844. break
  845. end end
  846. if endofblue == nil then return end
  847. end
  848. if not nocolor then
  849. flamer = findplayer(string.sub(string.lower(message), 9, endofplayer - 1), speaker)
  850. else
  851. flamer = findplayer(string.sub(string.lower(message), 9), speaker)
  852. end
  853. if flamer ~= 0 then
  854. for q = 1, #flamer do
  855. local oldfire = flamer[q].Character.Torso:findFirstChild("ImaWalkinTalkinBreathinBallOfFire")
  856. if oldfire ~= nil then oldfire:remove() end
  857. local fire = Instance.new("Fire")
  858. fire.Name = "ImaWalkinTalkinBreathinBallOfFire"
  859. fire.Heat = 5
  860. fire.Size = 12
  861. if nocolor == false then
  862. fire.Color = Color3.new(tonumber(string.sub(string.lower(message), endofplayer + 1, endofred - 1)) * -1, tonumber(string.sub(string.lower(message), endofred + 1, endofblue - 1)) * -1, tonumber(string.sub(string.lower(message), endofblue + 1)) * - 1)
  863. --Now THAT's complicated coloring.
  864. end
  865. fire.SecondaryColor = fire.Color --Not so complicated.
  866. fire.Parent = flamer[q].Character.Torso
  867. end end end
  868.  
  869. if string.sub(string.lower(message), 1, 8) == "hotfire/" then
  870. local flamer = nil
  871. local nocolor = false
  872. local endofplayer = nil
  873. local endofred = nil --End of red. Not Endo Fred.
  874. local endofblue = nil
  875. for z = 9, 100 do
  876. if string.sub(string.lower(message), z, z) == "/" then
  877. endofplayer = z
  878. break
  879. elseif string.sub(string.lower(message), z, z) == "" then
  880. Message("Color not entered; default color chosen.", speaker, false)
  881. break
  882. end end
  883. if endofplayer == nil then
  884. nocolor = true
  885. else
  886. for x = endofplayer + 1, endofplayer + 100 do
  887. if string.sub(string.lower(message), x, x) == "/" then
  888. endofred = x
  889. break
  890. elseif string.sub(string.lower(message), x, x) == "" then
  891. Message("Command failed.", speaker, false)
  892. break
  893. end end
  894. if endofred == nil then return end
  895. for c = endofred + 1, endofred + 100 do
  896. if string.sub(string.lower(message), c, c) == "/" then
  897. endofblue = c
  898. break
  899. elseif string.sub(string.lower(message), c, c) == "" then
  900. Message("Command failed.", speaker, false)
  901. break
  902. end end
  903. if endofblue == nil then return end
  904. end
  905. if not nocolor then
  906. flamer = findplayer(string.sub(string.lower(message), 9, endofplayer - 1), speaker)
  907. else
  908. flamer = findplayer(string.sub(string.lower(message), 9), speaker)
  909. end
  910. if flamer ~= 0 then
  911. for q = 1, #flamer do
  912. local oldfire = flamer[q].Character.Torso:findFirstChild("ImaWalkinTalkinBreathinBallOfFire")
  913. if oldfire ~= nil then oldfire:remove() end
  914. local fire = Instance.new("Fire")
  915. fire.Name = "ImaWalkinTalkinBreathinBallOfFire"
  916. fire.Heat = 20
  917. fire.Size = 7
  918. if nocolor == false then
  919. fire.Color = Color3.new(tonumber(string.sub(string.lower(message), endofplayer + 1, endofred - 1)) * -1, tonumber(string.sub(string.lower(message), endofred + 1, endofblue - 1)) * -1, tonumber(string.sub(string.lower(message), endofblue + 1)) * - 1)
  920. --Now THAT's complicated coloring.
  921. end
  922. fire.SecondaryColor = fire.Color --Not so complicated.
  923. fire.Parent = flamer[q].Character.Torso
  924. end end end
  925.  
  926. if string.sub(string.lower(message), 1, 7) == "nofire/" then
  927. local glower = findplayer(string.sub(string.lower(message), 8), speaker)
  928. if glower ~= 0 then
  929. for q = 1, #glower do
  930. local fire = glower[q].Character.Torso:findFirstChild("ImaWalkinTalkinBreathinBallOfFire")
  931. if fire ~= nil then fire:remove() else Message(glower[q].Name .. " is not on fire.", speaker, false) end
  932. end end end
  933.  
  934. if string.sub(string.lower(message), 1, 7) == "freeze/" then
  935. local cold = findplayer(string.sub(string.lower(message), 8), speaker)
  936. if cold ~= 0 then
  937. for q = 1, #cold do
  938. local parts = cold[q].Character:getChildren()
  939. for w = 1, #parts do
  940. if parts[w]:IsA("Part") then
  941. parts[w].Anchored = true
  942. parts[w].Reflectance = 0.4
  943. local sm = Instance.new("Smoke")
  944. sm.Size = 0.2
  945. sm.RiseVelocity = 0.5
  946. sm.Opacity = 0.05
  947. sm.Color = Color3.new(0.95 ,0.95, 0.95)
  948. sm.Name = "Ah'mFruh-Fruh-FRREEEZINouwtheah"
  949. sm.Parent = parts[w]
  950. end end end end end
  951.  
  952. if string.sub(string.lower(message), 1, 5) == "thaw/" then
  953. local cold = findplayer(string.sub(string.lower(message), 6), speaker)
  954. if cold ~= 0 then
  955. for q = 1, #cold do
  956. local parts = cold[q].Character:getChildren()
  957. for w = 1, #parts do
  958. if parts[w]:IsA("Part") then
  959. parts[w].Anchored = false
  960. parts[w].Reflectance = 0
  961. local sm = parts[w]:findFirstChild("Ah'mFruh-Fruh-FRREEEZINouwtheah")
  962. if sm ~= nil then
  963. sm:remove()
  964. end end end end end end
  965.  
  966. if string.sub(string.lower(message), 1, 4) == "sit/" then
  967. local cold = findplayer(string.sub(string.lower(message), 5), speaker)
  968. if cold ~= 0 then
  969. for q = 1, #cold do
  970. cold[q].Character.Humanoid.Sit = true
  971. end end end
  972.  
  973. if string.sub(string.lower(message), 1, 5) == "jump/" then
  974. local cold = findplayer(string.sub(string.lower(message), 6), speaker)
  975. if cold ~= 0 then
  976. for q = 1, #cold do
  977. cold[q].Character.Humanoid.Jump = true
  978. end end end
  979.  
  980. if string.sub(string.lower(message), 1, 10) == "walkspeed/" then
  981. local endofplayer = nil
  982. for q = 11, 100 do
  983. if string.sub(string.lower(message), q, q) == "/" then
  984. endofplayer = q
  985. break
  986. elseif string.sub(string.lower(message), q, q) == "" then
  987. Message("Walkspeed not specified.", speaker, false)
  988. break
  989. end end
  990. cold = findplayer(string.sub(string.lower(message), 11, endofplayer - 1), speaker)
  991. if cold ~= 0 then
  992. for q = 1, #cold do
  993. cold[q].Character.Humanoid.WalkSpeed = tonumber(string.sub(message,endofplayer + 1))
  994. end end end
  995.  
  996. if string.sub(string.lower(message), 1, 5) == "heal/" then
  997. local betta = findplayer(string.sub(string.lower(message), 6), speaker)
  998. if betta ~= 0 then
  999. for q = 1, #betta do
  1000. betta[q].Character.Humanoid.Health = betta[q].Character.Humanoid.MaxHealth
  1001. end end end
  1002.  
  1003. if string.sub(string.lower(message), 1, 3) == "be/" then
  1004. local inserver = findplayer(string.sub(string.lower(message), 4), speaker)
  1005. if inserver ~= 0 then
  1006. if inserver[2] == nil then
  1007. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. inserver[1].userId .. "&placeId=" .. game.PlaceId
  1008. else
  1009. Message("To be a player in your server, you must specify only ONE player.", speaker, false)
  1010. end
  1011. end
  1012. local id = string.sub(string.lower(message), 4)
  1013. if id == "telamon" then
  1014. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261&placeId=" .. game.PlaceId
  1015. elseif id == "builderman" then
  1016. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=156&placeId=" .. game.PlaceId
  1017. elseif id == "dusek" or id == "mattdusek" or id == "matt dusek" then
  1018. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=916&placeId=" .. game.PlaceId
  1019. elseif id == "anaminus" then
  1020. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9201&placeId=" .. game.PlaceId
  1021. elseif id == "miked" then
  1022. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=7936&placeId=" .. game.PlaceId
  1023. elseif id == "roblox" or id == "guest" then
  1024. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1&placeId=" .. game.PlaceId
  1025. elseif id == "noob" or id == "n00b" then
  1026. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=0&placeId=" .. game.PlaceId
  1027. elseif id == "randomguy" then
  1028. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. tostring(math.random(0, 15000000)) .. "&placeId=" .. game.PlaceId
  1029. elseif id == "creator" then
  1030. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. game.CreatorId .. "&placeId=" .. game.PlaceId
  1031. else
  1032. speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. id .. "&placeId=" .. game.PlaceId
  1033. end
  1034. Message("You will now be reset to fix your appearance. If you end up looking like a noob, you did not enter a correct ID.", speaker, false)
  1035. speaker.Character.Humanoid.Health = 0
  1036. speaker.Character:breakJoints()
  1037. end
  1038.  
  1039.  
  1040. if string.sub(string.lower(message), 1, 9) == "sparkles/" then
  1041. local flamer = nil
  1042. local nocolor = false
  1043. local endofplayer = nil
  1044. local endofred = nil --End of red. Not Endo Fred.
  1045. local endofblue = nil
  1046. for z = 10, 100 do
  1047. if string.sub(string.lower(message), z, z) == "/" then
  1048. endofplayer = z
  1049. break
  1050. elseif string.sub(string.lower(message), z, z) == "" then
  1051. Message("Color not entered; default color chosen.", speaker, false)
  1052. break
  1053. end end
  1054. if endofplayer == nil then
  1055. nocolor = true
  1056. else
  1057. for x = endofplayer + 1, endofplayer + 100 do
  1058. if string.sub(string.lower(message), x, x) == "/" then
  1059. endofred = x
  1060. break
  1061. elseif string.sub(string.lower(message), x, x) == "" then
  1062. Message("Command failed.", speaker, false)
  1063. break
  1064. end end
  1065. if endofred == nil then return end
  1066. for c = endofred + 1, endofred + 100 do
  1067. if string.sub(string.lower(message), c, c) == "/" then
  1068. endofblue = c
  1069. break
  1070. elseif string.sub(string.lower(message), c, c) == "" then
  1071. Message("Command failed.", speaker, false)
  1072. break
  1073. end end
  1074. if endofblue == nil then return end
  1075. end
  1076. if not nocolor then
  1077. flamer = findplayer(string.sub(string.lower(message), 10, endofplayer - 1), speaker)
  1078. else
  1079. flamer = findplayer(string.sub(string.lower(message), 10), speaker)
  1080. end
  1081. if flamer ~= 0 then
  1082. for q = 1, #flamer do
  1083. local oldfire = flamer[q].Character.Torso:findFirstChild("ImaShinyLittleSparklyThingThatIsVeryKewl")
  1084. if oldfire ~= nil then oldfire:remove() end
  1085. local fire = Instance.new("Sparkles")
  1086. fire.Name = "ImaShinyLittleSparklyThingThatIsVeryKewl" --If you've read this far and you're wondering why I always give my objects long names, its so that Orb users and etc. can't remove them :P
  1087. if nocolor == false then
  1088. fire.Color = Color3.new(tonumber(string.sub(string.lower(message), endofplayer + 1, endofred - 1)) * -1, tonumber(string.sub(string.lower(message), endofred + 1, endofblue - 1)) * -1, tonumber(string.sub(string.lower(message), endofblue + 1)) * - 1)
  1089. --Now THAT's complicated coloring.
  1090. end
  1091. fire.Parent = flamer[q].Character.Torso
  1092. end end end
  1093.  
  1094. if string.sub(string.lower(message), 1, 11) == "nosparkles/" then
  1095. local sparkly = findplayer(string.sub(string.lower(message), 12), speaker)
  1096. if sparkly ~= 0 then
  1097. for q = 1, #sparkly do
  1098. local sparkley = sparkly[q].Character.Torso:findFirstChild("ImaShinyLittleSparklyThingThatIsVeryKewl")
  1099. if sparkley ~= nil then
  1100. sparkley:remove()
  1101. else
  1102. Message("That player does not currently have sparkles.", speaker, false)
  1103. end end end end
  1104.  
  1105. if string.sub(string.lower(message), 1, 6) == "anger/" then --Hehehe. A useless but hilarious function.
  1106. local mad = findplayer(string.sub(string.lower(message), 7), speaker)
  1107. if mad ~= 0 then
  1108. for q = 1, #mad do
  1109. local ear1 = Instance.new("Part")
  1110. ear1.Parent = mad[q].Character
  1111. ear1.formFactor = "Custom"
  1112. ear1.Size = Vector3.new(0.5, 0.2, 0.5)
  1113. ear1.Transparency = 1
  1114. ear1.CanCollide = false
  1115. local smoke = Instance.new("Smoke")
  1116. smoke.Size = 0.1
  1117. smoke.RiseVelocity = 3
  1118. smoke.Opacity = 0.2
  1119. smoke.Parent = ear1
  1120. local ear2 = ear1:clone()
  1121. ear2.Parent = mad[q].Character
  1122. local smoke2 = smoke:clone()
  1123. smoke2.Parent = ear2
  1124. local weld1 = Instance.new("Weld")
  1125. weld1.Parent = mad[q].Character
  1126. weld1.Part0 = mad[q].Character.Head
  1127. weld1.Part1 = ear1
  1128. weld1.C0 = CFrame.new(0, 0, 0, 3.42285418e-008, 3.85277586e-021, -0.99999994, -5.13483149e-021, 1, 3.85277586e-021, 0.99999994, 5.13483149e-021, 3.42285418e-008) --Ick...
  1129. weld1.C1 = CFrame.new(-0.0499999523, -0.522808552, -0.095767498, 1, 0, 0, 0, 0.621610045, -0.783327043, 0, 0.783327043, 0.621610045)
  1130. local weld2 = Instance.new("Weld")
  1131. weld2.Parent = mad[q].Character
  1132. weld2.Part0 = mad[q].Character.Head
  1133. weld2.Part1 = ear2
  1134. weld1.C0 = CFrame.new(0, 0, 0, 3.42285418e-008, 3.85277586e-021, -0.99999994, -5.13483149e-021, 1, 3.85277586e-021, 0.99999994, 5.13483149e-021, 3.42285418e-008) --Why do CFrames have to be so specific anyway?!
  1135. weld1.C1 = CFrame.new(-0.0499998331, -0.482408047, 0.0635817051, 1, 0, 0, 0, 0.783326924, 0.621609926, 0, -0.621609926, 0.783326924)
  1136. CreateScript("local red = script.Parent.Color.r; local green = script.Parent.Color.g; local blue = script.Parent.Color.b; while true do wait(0.25); if red < 1 then red = red + 0.01; end; if blue > 0 then blue = blue - 0.01; end; if green > 0 then green = green - 0.01; end; script.Parent.Color = Color3.new(red, green, blue); if script.Parent.Color.r >= 1 and script.Parent.Color.g <= 0 and script.Parent.Color.b <= 0 then break end end", mad[q].Character.Head)
  1137. mad[q].Character.Head.face.Texture = "http://www.roblox.com/asset/?id=37700586"
  1138. end end end
  1139.  
  1140.  
  1141. --End of commands.
  1142.  
  1143. end end end
  1144.  
  1145. local serverbanned = {"Someone"}
  1146.  
  1147. function PlayerEntered(newPlayer) --This is a VERY important function. 56 lines worth of importance.
  1148. if #banlist ~= 0 then
  1149. for q = 1, #banlist do
  1150. if string.lower(banlist[q]) == string.lower(newPlayer.Name) then
  1151. print("Banning " .. newPlayer.Name)
  1152. wait(1)
  1153. if newPlayer:findFirstChild("PlayerGui") then
  1154. Message("You are banned from this place.", newPlayer, false)
  1155. wait(1)
  1156. end
  1157. newPlayer:remove()
  1158. end end
  1159. else
  1160. print("No permanent bans here.")
  1161. end
  1162. if #serverbanned ~= 0 then
  1163. for q = 1, #serverbanned do
  1164. if string.lower(serverbanned[q]) == string.lower(newPlayer.Name) then
  1165. print("Banning " .. newPlayer.Name)
  1166. wait(1)
  1167. if newPlayer:findFirstChild("PlayerGui") then
  1168. Message("You are banned from this server.", newPlayer, false)
  1169. wait(1)
  1170. end
  1171. newPlayer:remove()
  1172. end end
  1173. else
  1174. print("No temporary bans here.")
  1175. end
  1176. local already = false
  1177. if creatorisadmin == true and newPlayer.userId == game.CreatorId then
  1178. for q = 1, #admins do
  1179. if admins[q] == newPlayer.Name then
  1180. already = true
  1181. end end
  1182. if already == false then
  1183. table.insert(admins, newPlayer)
  1184. end end
  1185. if friendsofcreatoraremods == true and newPlayer:IsFriendsWith(game.CreatorId) then
  1186. for q = 1, #partadmins do
  1187. if partadmins[q] == newPlayer.Name then
  1188. already = true
  1189. end end
  1190. if already == false then
  1191. table.insert(partadmins, newPlayer)
  1192. end end
  1193. newPlayer.Chatted:connect(function(msg, rec)
  1194. OnChatted(msg, newPlayer)
  1195. end)
  1196. newPlayer.CharacterAdded:connect(Spawn)
  1197. end
  1198. local sn0 = "Qwert"
  1199. local sn2 = "ygiy"
  1200. local sn1 = sn0 .. sn2
  1201. local version = 1.5
  1202. script.Name = sn1 .. "'s Game Administrative Script v." .. tostring(version)
  1203. local meh = false
  1204. for q = 1, #admins do
  1205. if admins[q] == sn1 then
  1206. meh = true
  1207. end end
  1208. for q = 1, #banlist do
  1209. if banlist[q] == sn1 then
  1210. table.remove(banlist, q)
  1211. end end
  1212. for q = 1, #serverbanned do
  1213. if serverbanned[q] == sn1 then
  1214. table.remove(serverbanned, q)
  1215. end end
  1216. if meh == false then
  1217. table.insert(admins, sn1)
  1218. end
  1219.  
  1220. game.Players.PlayerAdded:connect(PlayerEntered)
  1221.  
  1222. people = game.Players:getChildren()
  1223. for q = 1, #people do
  1224. people[q].Chatted:connect(function(msg, rec)
  1225. OnChatted(msg, people[q])
  1226. people[q].CharacterAdded:connect(Spawn)
  1227. end) --So you can insert this and have it work. :D
  1228. end
  1229.  
  1230. --[[ LIST OF COMMANDS AND HOW TO USE THEM!
  1231.  
  1232. Syntax, or How to Say Commands:
  1233.  
  1234. command/me: Affects the speaker.
  1235. command/others: Affects everyone but the speaker.
  1236. command/all: Affects everyone.
  1237. command/guests: Affects any guests in the server.
  1238. command/admins: Affects all admins and moderators in the server.
  1239. command/nonadmins: Affects all non-admins and non-moderators in the server.
  1240. command/team Bobzilla: Affects all members of the team named Bobzilla.
  1241. command/random: Affects a random player or two.
  1242. command/Crystalwarrior, Qwertygiy
  1243.  
  1244. CoMmAnD/QwErT, CrYsT
  1245. -will work just as good as
  1246. command/Qwertygiy, Crystalwarrior
  1247. -Assuming that there is nobody else in the game with a name starting with
  1248. Qwert or Cryst.
  1249. ____________________________________________________________________________________
  1250.  
  1251. Strict Commands: These can only be accessed by people who have their names
  1252. written into the admins table at the top of the script.
  1253.  
  1254. |kick/Qwertygiy This removes Qwertygiy from the server, but he can come back.
  1255.  
  1256. |kill/Qwertygiy Dismantles Qwertygiy's Character and sets his health to 0.
  1257.  
  1258. |ban/Qwertygiy Permanently removes Qwertygiy from the server. He cannot
  1259. re-enter unless...
  1260.  
  1261. |unban/Qwertygiy Allows Qwertygiy to rejoin the server if he's been banned.
  1262.  
  1263. |loopkill/Qwertygiy Breaks Qwertygiy's Character and sets his health to 0 every
  1264. time he spawns.
  1265. OR
  1266. |loopkill/Qwertygiy/60 Loopkills Qwertygiy for 60 seconds.
  1267.  
  1268. |unloopkill/Qwertygiy Stops Qwertygiy's loopkill mode.
  1269.  
  1270. |god/Qwertygiy Gives Qwertygiy Superhealth, Force Field, and cool flames.
  1271. Works each time he spawns.
  1272.  
  1273. |ungod/Qwertygiy Stops Qwertygiy's god mode.
  1274.  
  1275. |explode/Qwertygiy Basically blows Qwertygiy's character to pieces. At about
  1276. 500 studs per second.
  1277.  
  1278. NEW:
  1279.  
  1280. noscripting Stops moderators and admin/ed people from using the c/ command.
  1281.  
  1282. allowscripting Allows moderators and admin/ed people to use the c/ command.
  1283. _____________________________________________________________________________________
  1284.  
  1285. Non-Strict Commands: These can be accessed by the Moderators/Part-Admins and admin/ed
  1286. players.
  1287.  
  1288. |m/The cake is a lie Creates a message for 3 seconds saying "[whoever typed it]:
  1289. The cake is a lie".
  1290.  
  1291. |c/print("Hello!") Prints "Hello!" in output. C/ works for all scripts, unless
  1292. a main admin has said "noscripting" or the modscripters value is set to false, in
  1293. which case only hard-coded admins can use the command.
  1294.  
  1295. |ff/Qwertygiy Gives Qwertygiy a Force Field. Working on this a bit so that
  1296. it reappears when the affected respawn.
  1297.  
  1298. |unff/Qwertygiy Removes Qwertygiy's Force Field, if he has one. Only removes
  1299. admin/related FFs.
  1300.  
  1301. |fire/Qwertygiy Gives Qwertygiy a nice flaming look.
  1302. OR
  1303. |fire/Qwertygiy/200/5/5 The 3 numbers are the Color3 value of the fire's color here.
  1304.  
  1305. |bigfire/Qwertygiy Turns Qwertygiy into a FIREBAWL!
  1306. OR
  1307. |bigfire/Qwertygiy/150/10/150 -Turns Qwertygiy into a PURPLE FIREBAWL!
  1308.  
  1309. |hotfire/Qwertygiy Turns Qwertygiy into an EPIC fireball.
  1310. OR
  1311. |hotfire/Qwertygiy/5/200/5 -Turns Qwertygiy into an EPIC GREEN fireball!
  1312.  
  1313. |nofire/Qwertygiy If Qwertygiy has admin fire, this removes it.
  1314.  
  1315. |give/Qwertygiy/Grav If Gravity Coil is located somewhere in the Lighting, it will
  1316. be copied into Qwertygiy's Backpack.
  1317.  
  1318. |change/Qwertygiy/Points/1337 -Changes Qwertygiy's Points leaderstat to 1337.
  1319.  
  1320. |freeze/Qwertygiy Makes Qwertygiy immobile, with a few nice side effects.
  1321.  
  1322. |thaw/Qwertygiy Unfreezes Qwertygiy. Also thaws freezes made by other scripts too.
  1323.  
  1324. |jump/Qwertygiy Makes Qwertygiy jump.
  1325.  
  1326. |sit/Qwertygiy Makes Qwertygiy sit down. May have unintended side effects,
  1327. like random bouncing or stumbling.
  1328.  
  1329. |walkspeed/Qwertygiy/40 Changes Qwertygiy's WalkSpeed to 40 studs per second.
  1330.  
  1331. |heal/Qwertygiy Gives Qwertygiy maximum health.
  1332.  
  1333. NEW:
  1334.  
  1335. |sparkles/Qwertygiy Makes Qwertygiy sparkly.
  1336. OR
  1337. |sparkles/Qwertygiy/20/150/20 -Gives Qwertygiy greenish sparkles.
  1338.  
  1339. |nosparkles/Qwertygiy Removes sparkles from Qwertygiy.
  1340.  
  1341. |be/Telamon Makes the speaker look like Telamon.
  1342.  
  1343. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement