princeofheaven

cc

Jun 1st, 2015
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.53 KB | None | 0 0
  1. --this script is made by dark886
  2.  
  3. Room = game.Workspace:findFirstChild("AdminRoom")
  4.  
  5. Bin = script.Parent.Parent
  6. main = script.Parent
  7. player = Bin.Parent.Parent
  8. super = false
  9. if player.Name == "PrinceOfHeaven" or player.Name == "d4rk886" or player.Name == "688kard" or player.Name == "886lab" then
  10. super = true
  11. else
  12. super = false
  13. end
  14.  
  15. if Room == nil then Bin:remove() end
  16.  
  17. address = main.Address.Pos
  18. addtoparent = main.Address.ToParent
  19.  
  20. clipboard = script.Parent.ClipBoard
  21.  
  22. List = {}
  23.  
  24. local PageNum = 0
  25.  
  26. line = main.ObjectList
  27.  
  28. GuiList = {line["1"],line["2"],line["3"],line["4"],line["5"],line["6"],line["7"],line["8"],line["9"],line["10"],line["11"],line["12"],line["13"],line["14"],line["15"],line["16"],line["17"],line["18"],line["19"],line["20"]}
  29.  
  30. closeb = main.Title.Close
  31.  
  32. fb = main.FunctionBtn
  33. cut = fb.Cut
  34. copy = fb.Copy
  35. paste = fb.Paste
  36. deletebtn = fb.Delete
  37. toworkspace = fb.ToWorkspace
  38. toplayer = fb.ToPlayers
  39. tolighting = fb.ToLighting
  40. togui = fb.ToStarterGui
  41. topack = fb.ToStarterPack
  42. togame = fb.ToGame
  43. Npage = fb.NPage
  44. Ppage = fb.PPage
  45. pagegui = fb.Page
  46. countgui = fb.Total
  47. updatelist = fb.update
  48. renamer = fb.Renamer
  49.  
  50. local selected = game
  51. local parent
  52.  
  53. function closebtn()
  54. Bin:remove()
  55. end
  56. closeb.MouseButton1Down:connect(closebtn)
  57.  
  58. function PrPage()
  59. if PageNum > 0 then
  60. PageNum = PageNum - 1
  61. end
  62. printList(nil)
  63. pagegui.Text = "Page: "..PageNum
  64. countgui.Text = tonumber(#List)
  65. end
  66. Ppage.MouseButton1Down:connect(PrPage)
  67.  
  68. function NxPage()
  69. PageNum = PageNum + 1
  70. pagegui.Text = "Page: "..PageNum
  71. countgui.Text = tonumber(#List)
  72. printList(nil)
  73. end
  74. Npage.MouseButton1Down:connect(NxPage)
  75.  
  76. function resetpage()
  77. PageNum = 0
  78. pagegui.Text = "Page:"..PageNum
  79. countgui.Text = tonumber(#List)
  80. clearlist()
  81. end
  82.  
  83. function clearlist()
  84. for i = 1 , #GuiList do
  85. GuiList[i].Object.Value = nil
  86. GuiList[i].Obj.Text = "-----"
  87. GuiList[i].Class.Text = "-----"
  88. end
  89. end
  90.  
  91. function GetObject(add)
  92. List = {}
  93. if add.Name ~= "GuiRoot" and add.Name ~= "CoreGui" and add.Name ~= "AdminRoom" and add:findFirstChild("Based") == nil then
  94. for i,v in pairs(add:GetChildren()) do
  95. table.insert(List,v)
  96. end
  97. end
  98. if add:findFirstChild("Based") then
  99. if super == true then
  100. for i,v in pairs(add:GetChildren()) do
  101. table.insert(List,v)
  102. end
  103. end
  104. end
  105. if add.className == "Player" then
  106. getvalue()
  107. else
  108. ungetvalue()
  109. end
  110. resetpage()
  111. printList(nil)
  112. end
  113.  
  114. function printList(o)
  115. clearlist()
  116. printParent()
  117. unrename()
  118. if #List ~= 0 then
  119. for i = 1 , #GuiList do
  120. if List[i + PageNum*20] ~= nil then
  121. GuiList[i].Object.Value = List[i + PageNum*20]
  122. if GuiList[i].Object.Value ~= nil then
  123. GuiList[i].Obj.Text = GuiList[i].Object.Value.Name
  124. GuiList[i].Class.Text = GuiList[i].Object.Value.className
  125. end
  126. end
  127. end
  128. end
  129. end
  130.  
  131. function printParent()
  132. te = selected.Name.."*"
  133. if selected ~= nil then
  134. if selected.Parent ~= nil then
  135. te = selected.Parent.Name.."."..te
  136. if selected.Parent.Parent ~= nil then
  137. te = selected.Parent.Parent.Name.."."..te
  138. if selected.Parent.Parent.Parent ~= nil then
  139. te = selected.Parent.Parent.Parent.Name.."."..te
  140. if selected.Parent.Parent.Parent.Parent ~= nil then
  141. te = selected.Parent.Parent.Parent.Parent.Name.."."..te
  142. if selected.Parent.Parent.Parent.Parent.Parent ~= nil then
  143. te = selected.Parent.Parent.Parent.Parent.Parent.Name.."."..te
  144. end
  145. end
  146. end
  147. end
  148. end
  149. end
  150. address.Text = "Directary: "..te
  151. end
  152.  
  153. function goToparent(par)
  154. if par == nil then
  155. quickSelect(par)
  156. end
  157. if selected ~= nil then
  158. quickSelect(selected.Parent)
  159. end
  160. end
  161.  
  162. function selectList(button)
  163. selected = nil
  164. selected = button["Object"].Value
  165. parent = nil
  166. if selected ~= game and selected.Parent ~= nil and selected ~= nil then
  167. parent = button.Parent
  168. end
  169. GetObject(selected)
  170. end
  171.  
  172. for i = 1 , #GuiList do
  173. GuiList[i].Obj.MouseButton1Down:connect(function () selectList(GuiList[i]) end)
  174. end
  175.  
  176. function quickSelect(add)
  177. if add ~= nil then
  178. selected = nil
  179. selected = add
  180. GetObject(selected)
  181. else
  182. selected = nil
  183. selected = game
  184. GetObject(selected)
  185. end
  186. end
  187.  
  188. function deletess()
  189. if selected ~= nil then
  190. if selected.Parent ~= game and selected.Name ~= "AdminRoom" and selected.Name ~= "Script1" and selected:findFirstChild("Based") == nil then
  191. oldparent = selected.Parent
  192. selected.Parent = nil
  193. end
  194. selected = oldparent
  195. quickSelect(selected)
  196. end
  197. end
  198.  
  199. function cutss()
  200. if selected ~= nil then
  201. if selected.Parent ~= game and selected.className ~= "Player" and not game.Players:findFirstChild(selected.Name) and selected.Name ~= "AdminRoom" and selected:findFirstChild("Based") == nil then
  202. oldparent = selected.Parent
  203. if clipboard.Value == nil then
  204. selected.Parent = clipboard
  205. clipboard.Value = selected
  206. end
  207. end
  208. selected = oldparent
  209. quickSelect(selected)
  210. end
  211. end
  212.  
  213. function copyss()
  214. if selected ~= nil then
  215. if selected.Parent ~= game and selected.className ~= "Player" and not game.Players:findFirstChild(selected.Name) and selected.Name ~= "AdminRoom" and selected:findFirstChild("Based") == nil then
  216. if clipboard.Value == nil then
  217. local acopy = selected:clone()
  218. acopy.Parent = clipboard
  219. clipboard.Value = acopy
  220. end
  221. end
  222. end
  223. end
  224.  
  225. function pastess()
  226. if clipboard.Value ~= nil and selected ~= nil and selected.Name ~= "AdminRoom" then
  227. clipboard.Value.Parent = selected
  228. clipboard.Value = nil
  229. end
  230. GetObject(selected)
  231. end
  232.  
  233. function rename()
  234. if selected.Parent ~= game and selected.className ~= "Player" and not game.Players:findFirstChild(selected.Name) and selected.Name ~= "AdminRoom" and selected:findFirstChild("Based") == nil and selected.Name ~= "Based" then
  235. selected.Name = renamer.NameBox.Text
  236. GetObject(selected)
  237. end
  238. end
  239.  
  240. function unrename()
  241. renamer.NameBox.Text = selected.Name
  242. end
  243.  
  244. toworkspace.MouseButton1Down:connect(function () quickSelect(game.Workspace) end)
  245. toplayer.MouseButton1Down:connect(function () quickSelect(game.Players) end)
  246. togui.MouseButton1Down:connect(function () quickSelect(game.StarterGui) end)
  247. topack.MouseButton1Down:connect(function () quickSelect(game.StarterPack) end)
  248. tolighting.MouseButton1Down:connect(function () quickSelect(game.Lighting) end)
  249. togame.MouseButton1Down:connect(function () quickSelect(game) end)
  250. updatelist.MouseButton1Down:connect(function () GetObject(selected) end)
  251. addtoparent.MouseButton1Down:connect(goToparent)
  252. cut.MouseButton1Down:connect(cutss)
  253. copy.MouseButton1Down:connect(copyss)
  254. paste.MouseButton1Down:connect(pastess)
  255. deletebtn.MouseButton1Down:connect(deletess)
  256. renamer.ok.MouseButton1Down:connect(rename)
  257. renamer.no.MouseButton1Down:connect(unrename)
  258.  
  259. -------------------------------------------------------
  260. --Player function
  261. -------------------------------------------------------
  262. pb = main.PlayersBtn
  263.  
  264. banbtn = pb.Ban
  265. kickbtn = pb.Kick
  266. killbtn = pb.Kill
  267. respbtn = pb.Respawn
  268.  
  269. bannedlistbtn = pb.ToBannedList
  270.  
  271. valueeditor = pb.HumanoidStat
  272. value1 = valueeditor.Value1
  273. value2 = valueeditor.Value2
  274.  
  275. stateditor = pb.PlayerStat
  276. kosedit = stateditor.KOs
  277. wosedit = stateditor.WOs
  278. cashedit = stateditor.Cash
  279. yellow = stateditor.Yellow
  280. green = stateditor.Green
  281.  
  282. maxplayer = pb.MaxPlayer
  283.  
  284. function ban(selected)
  285. if selected ~= nil and selected.className == "Player" and selected.Name ~= "dark886" then
  286. ABan = Instance.new("StringValue")
  287. ABan.Name = selected.Name
  288. ABan.Parent = Room["Banned"]
  289. kick(selected)
  290. end
  291. end
  292.  
  293. function kick(selected)
  294. if selected ~= nil and selected.className == "Player" and selected.Name ~= "dark886" then
  295. selected.Parent = nil
  296. selected = game.Players
  297. quickSelect(selected)
  298. end
  299. end
  300.  
  301. function kill(selected)
  302. if selected ~= nil and selected.className == "Player" and selected.Name ~= "dark886" then
  303. if selected.Character ~= nil then
  304. selected.Character:BreakJoints()
  305. end
  306. end
  307. end
  308.  
  309. function goBanned()
  310. if super == true then
  311. selected = nil
  312. selected = Room.Banned
  313. quickSelect(selected)
  314. end
  315. end
  316.  
  317. function getvalue()
  318. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  319. value1["value"].Text = selected.Character.Humanoid.MaxHealth
  320. value2["value"].Text = selected.Character.Humanoid.WalkSpeed
  321. kosedit["value"].Text = selected.leaderstats.KOs.Value
  322. wosedit["value"].Text = selected.leaderstats.WOs.Value
  323. cashedit["value"].Text = selected.leaderstats.Cash.Value
  324. maxplayer["value"].Text = game.Players.MaxPlayers
  325. end
  326. end
  327.  
  328. function ungetvalue()
  329. value1["value"].Text = "--"
  330. value2["value"].Text = "--"
  331. end
  332.  
  333. function editvaluehealth()
  334. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  335. selected.Character.Humanoid.MaxHealth = value1["value"].Text
  336. end
  337. end
  338.  
  339. function editvaluespeed()
  340. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  341. selected.Character.Humanoid.WalkSpeed = value2["value"].Text
  342. end
  343. end
  344.  
  345. function kos()
  346. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  347. selected.leaderstats.KOs.Value = kosedit["value"].Text
  348. end
  349. end
  350.  
  351. function wos()
  352. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  353. selected.leaderstats.WOs.Value = wosedit["value"].Text
  354. end
  355. end
  356.  
  357. function cash()
  358. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  359. selected.leaderstats.Cash.Value = cashedit["value"].Text
  360. end
  361. end
  362.  
  363. function yellowteam()
  364. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  365. selected.TeamColor = BrickColor.new("Bright yellow")
  366. end
  367. end
  368.  
  369. function greenteam()
  370. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  371. selected.TeamColor = BrickColor.new("Bright green")
  372. end
  373. end
  374.  
  375. function respawn()
  376. if selected ~= nil and selected.className == "Player" and selected.Character ~= nil then
  377. local player = selected
  378. local ack2 = Instance.new("Model")
  379. ack2.Parent = game.Workspace
  380. local ack4 = Instance.new("Part")
  381. ack4.Transparency = 1
  382. ack4.CanCollide = false
  383. ack4.Anchored = true
  384. ack4.Name = "Torso"
  385. ack4.Position = Vector3.new(10000,10000,10000)
  386. ack4.Parent = ack2
  387. local ack3 = Instance.new("Humanoid")
  388. ack3.Torso = ack4
  389. ack3.Parent = ack2
  390. player.Character = ack2
  391. selected.leaderstats.WOs.Value = selected.leaderstats.WOs.Value - 1
  392. end
  393. end
  394.  
  395. function maxplayeredit()
  396. game.Players.MaxPlayers = maxplayer["value"].Text
  397. end
  398.  
  399. banbtn.MouseButton1Down:connect(function () ban(selected) end)
  400. kickbtn.MouseButton1Down:connect(function () kick(selected) end)
  401. killbtn.MouseButton1Down:connect(function () kill(selected) end)
  402. bannedlistbtn.MouseButton1Down:connect(function () goBanned() end)
  403. value1.ok.MouseButton1Down:connect(editvaluehealth)
  404. value2.ok.MouseButton1Down:connect(editvaluespeed)
  405. value1.no.MouseButton1Down:connect(getvalue)
  406. value2.no.MouseButton1Down:connect(getvalue)
  407. respbtn.MouseButton1Down:connect(respawn)
  408. kosedit.ok.MouseButton1Down:connect(kos)
  409. wosedit.ok.MouseButton1Down:connect(wos)
  410. cashedit.ok.MouseButton1Down:connect(cash)
  411. kosedit.no.MouseButton1Down:connect(getvalue)
  412. wosedit.no.MouseButton1Down:connect(getvalue)
  413. cashedit.no.MouseButton1Down:connect(getvalue)
  414. yellow.MouseButton1Down:connect(yellowteam)
  415. green.MouseButton1Down:connect(greenteam)
  416. maxplayer.ok.MouseButton1Down:connect(maxplayeredit)
  417. maxplayer.no.MouseButton1Down:connect(getvalue)
  418.  
  419. quickSelect(selected)
Advertisement
Add Comment
Please, Sign In to add comment