Advertisement
Godofadmin1337

working insert tool?

Nov 15th, 2017
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.70 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Sound8 = Instance.new("Sound")
  28. Sound9 = Instance.new("Sound")
  29. Sound10 = Instance.new("Sound")
  30. Sound11 = Instance.new("Sound")
  31. Sound12 = Instance.new("Sound")
  32. Sound13 = Instance.new("Sound")
  33. Sound14 = Instance.new("Sound")
  34. Script15 = Instance.new("Script")
  35. Script16 = Instance.new("Script")
  36. LocalScript17 = Instance.new("LocalScript")
  37. ScreenGui18 = Instance.new("ScreenGui")
  38. Frame19 = Instance.new("Frame")
  39. ImageLabel20 = Instance.new("ImageLabel")
  40. TextLabel21 = Instance.new("TextLabel")
  41. TextLabel22 = Instance.new("TextLabel")
  42. TextLabel23 = Instance.new("TextLabel")
  43. TextButton24 = Instance.new("TextButton")
  44. Frame25 = Instance.new("Frame")
  45. ImageLabel26 = Instance.new("ImageLabel")
  46. TextLabel27 = Instance.new("TextLabel")
  47. TextLabel28 = Instance.new("TextLabel")
  48. TextButton29 = Instance.new("TextButton")
  49. Frame30 = Instance.new("Frame")
  50. Frame31 = Instance.new("Frame")
  51. Frame32 = Instance.new("Frame")
  52. TextButton33 = Instance.new("TextButton")
  53. TextButton34 = Instance.new("TextButton")
  54. TextButton35 = Instance.new("TextButton")
  55. TextLabel36 = Instance.new("TextLabel")
  56. TextButton37 = Instance.new("TextButton")
  57. TextButton38 = Instance.new("TextButton")
  58. TextButton39 = Instance.new("TextButton")
  59. TextLabel40 = Instance.new("TextLabel")
  60. Frame41 = Instance.new("Frame")
  61. Frame42 = Instance.new("Frame")
  62. TextButton43 = Instance.new("TextButton")
  63. ImageLabel44 = Instance.new("ImageLabel")
  64. ImageButton45 = Instance.new("ImageButton")
  65. Frame46 = Instance.new("Frame")
  66. TextLabel47 = Instance.new("TextLabel")
  67. TextButton48 = Instance.new("TextButton")
  68. TextButton49 = Instance.new("TextButton")
  69. Tool0.Name = "Insert Tool by Tutis17"
  70. Tool0.Parent = mas
  71. Tool0.TextureId = "rbxasset://icons/insert.png"
  72. Tool0.GripForward = Vector3.new(-1, 0, -0)
  73. Tool0.GripPos = Vector3.new(0.600000024, 0.200000003, 0)
  74. Tool0.GripRight = Vector3.new(0, 0, -1)
  75. Part1.Name = "Handle"
  76. Part1.Parent = Tool0
  77. Part1.BrickColor = BrickColor.new("Dark stone grey")
  78. Part1.Rotation = Vector3.new(180, 0, 0)
  79. Part1.FormFactor = Enum.FormFactor.Plate
  80. Part1.Size = Vector3.new(1, 0.800000012, 2)
  81. Part1.CFrame = CFrame.new(442.5, 378.400024, 140, 0.999999881, -8.94069672e-08, 7.03537317e-09, -5.96046448e-08, -0.99999994, -1.33226763e-15, 7.03537406e-09, -2.56554315e-16, -1)
  82. Part1.BottomSurface = Enum.SurfaceType.Smooth
  83. Part1.TopSurface = Enum.SurfaceType.Smooth
  84. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  85. Part1.Position = Vector3.new(442.5, 378.400024, 140)
  86. Part1.Orientation = Vector3.new(0, 180, -180)
  87. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  88. SpecialMesh2.Parent = Part1
  89. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=18715644"
  90. SpecialMesh2.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
  91. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=18715636"
  92. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  93. SpecialMesh2.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
  94. Sound3.Name = "Sound2"
  95. Sound3.Parent = Part1
  96. Sound3.SoundId = "http://www.roblox.com/asset/?id=18716629"
  97. Sound4.Name = "Sound3"
  98. Sound4.Parent = Part1
  99. Sound4.SoundId = "http://www.roblox.com/asset/?id=18716629"
  100. Sound5.Name = "Sound1"
  101. Sound5.Parent = Part1
  102. Sound5.SoundId = "http://www.roblox.com/asset/?id=18716629"
  103. Sound6.Name = "Sound4"
  104. Sound6.Parent = Part1
  105. Sound6.SoundId = "http://www.roblox.com/asset/?id=18716629"
  106. Sound7.Parent = Part1
  107. Sound7.SoundId = "http://www.roblox.com/asset/?id=18716629"
  108. Sound8.Parent = Part1
  109. Sound8.SoundId = "http://www.roblox.com/asset/?id=18716629"
  110. Sound9.Parent = Part1
  111. Sound9.SoundId = "http://www.roblox.com/asset/?id=18716629"
  112. Sound10.Parent = Part1
  113. Sound10.SoundId = "http://www.roblox.com/asset/?id=18716629"
  114. Sound11.Parent = Part1
  115. Sound11.SoundId = "http://www.roblox.com/asset/?id=18716629"
  116. Sound12.Parent = Part1
  117. Sound12.SoundId = "http://www.roblox.com/asset/?id=18716629"
  118. Sound13.Parent = Part1
  119. Sound13.SoundId = "http://www.roblox.com/asset/?id=18716629"
  120. Sound14.Parent = Part1
  121. Sound14.SoundId = "http://www.roblox.com/asset/?id=18716629"
  122. Script15.Parent = Part1
  123. table.insert(cors,sandbox(Script15,function()
  124. --Version 2 1.02 I fixed some problems caused by the updates.
  125. adminlist = {"tutis17", "tutis170", "TusitSicipe", "necronites", "piehunter101", "Ryona"}--Add in the names of the people you want to be able to use the command script here.
  126. --Please keep my name in there. ;)
  127. bannedlist = { ""}--If you want someone not to be able to enter your place, put thier name in here.
  128. texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here.
  129.  
  130. --[[
  131. I update this command script alot, so if you want to get the newest version of the script, go to http://www.roblox.com/Item.aspx?ID=5277383 every once in a while.
  132.  
  133. If theres anything you think this command script needs, just message me (Person299) and i might put it in. :)
  134. And also, if you find any bugs, report them to me.
  135.  
  136. The commands are,
  137.  
  138. commands
  139. Shows a list of all the commands
  140.  
  141. fix
  142. If the command script breaks for you, say this to fix it
  143.  
  144. kill/Person299
  145. kills Person299
  146.  
  147. loopkill/Person299
  148. Repeatedly kills Person299 when he respawns
  149.  
  150. unloopkill/Person299
  151. Undos loopkill/
  152.  
  153. heal/Person299
  154. Returns Person299 to full health
  155.  
  156. damage/Person299/50
  157. Makes Person299's character take 50 damage
  158.  
  159. health/Person299/999999
  160. Makes Person299's MaxHealth and Health 999999
  161.  
  162. kick/Person299
  163. Removes Person299 from the game, cannot be used by admin/ed people
  164.  
  165. ban/Person299
  166. Removes Person299 from the game and keeps him from reenterring, cannot be used by admin/ed people
  167.  
  168. bannedlist
  169. Shows a list of everyone banned
  170.  
  171. unban/Person299
  172. Unbans Person299
  173.  
  174. explode/Person299
  175. Explodes Person299's character
  176.  
  177. rocket/Person299
  178. Straps a rocket onto Person299's back
  179.  
  180. removetools/Person299
  181. Removes all of Person299's tools.
  182.  
  183. givetools/Person299
  184. Gives Person299 all the tools in StarterPack
  185.  
  186. givebtools/Person299
  187. Gives Person299 the building tools
  188.  
  189. sit/Person299
  190. Makes Person299 sit
  191.  
  192. part/4/1/2
  193. Makes a part with the given dimensions appear over your character
  194.  
  195. respawn/Person299
  196. Makes Person299's character respawn
  197.  
  198. jail/Person299
  199. Makes a lil jail cell around Person299's character
  200.  
  201. unjail/Person299
  202. Undos jail/
  203.  
  204. punish/Person299
  205. Puts Person299's character in game.Lighting
  206.  
  207. unpunish/Person299
  208. Undos punish/
  209.  
  210. merge/Person299/Farvei
  211. Makes Person299 control Farvei's character
  212.  
  213. teleport/Person299/nccvoyager
  214. Teleports Person299's character to nccvoyager's character
  215.  
  216. control/Person299
  217. Makes you control Person299's character
  218.  
  219. change/Person299/Money/999999
  220. Makes the Money value in Person299's leaderstats 999999
  221.  
  222. tools
  223. Gives you a list of all the tools available to be give/en, the tool must be in game.Lighting
  224.  
  225. give/Person299/Tool
  226. Give's Person299 a tool, the toolname can be abbreviated
  227.  
  228. time/15.30
  229. Makes game.Lighting.TimeOfDay 15:30
  230.  
  231. ambient/255/0/0
  232. Makes game.Lighting.Ambient 255,0,0
  233.  
  234. maxplayers/20
  235. Makes game.Players.MaxPlayers 20
  236.  
  237. nograv/Person299
  238. Makes Person299 almost weightless
  239.  
  240. antigrav/Person299
  241. Gives Person299 antigravity properties
  242.  
  243. grav/Person299
  244. Returns Person299's gravity to normal
  245.  
  246. highgrav/Person299
  247. Makes Person299 heavier
  248.  
  249. setgrav/Person299/-196
  250. Sets Person299's gravity
  251.  
  252. trip/Person299
  253. Makes Person299's character trip
  254.  
  255. walkspeed/Person299/99
  256. Makes Person299's character's humanoid's WalkSpeed 99, 16 is average
  257.  
  258. invisible/Person299
  259. Makes Person299's character invisible
  260.  
  261. visible/Person299
  262. Undos invisible/
  263.  
  264. freeze/Person299
  265. Makes Person299's character unable to move
  266.  
  267. thaw/Person299
  268. Undos freeze/
  269.  
  270. unlock/Person299
  271. Makes Person299's character unlocked
  272.  
  273. lock/Person299
  274. Makes Person299's character locked
  275.  
  276. ff/Person299
  277. Gives Person299's character a ForceField
  278.  
  279. unff/Person299
  280. Undos ff/
  281.  
  282. sparkles/Person299
  283. Makes Person299's character sparkly
  284.  
  285. unsparkles/Person299
  286. Undos sparkles/
  287.  
  288. shield/Person299
  289. Makes a destructive shield thingy appear around Person299
  290.  
  291. unshield/Person299
  292. Undos shield/
  293.  
  294. god/Person299
  295. Makes Person299 godish
  296.  
  297. ungod/Person299
  298. Undos god/
  299.  
  300. zombify/Person299
  301. Makes Person299 a infecting zombie
  302.  
  303. admin/Person299
  304. Makes Person299 able to use the command script, cannot be used by admin/ed people
  305.  
  306. adminlist
  307. Shows a list of everyone in the adminlist
  308.  
  309. unadmin/Person299
  310. Undos admin/, cannot be used by admin/ed people
  311.  
  312. shutdown
  313. Shuts the server down, cannot be used by admin/ed people
  314.  
  315. m/Fallout 2 is one of the best games ever made
  316. Makes a message appear on the screen saying "Fallout 2 is one of the best games ever made" for 2 seconds
  317.  
  318. h/i like pie
  319. Makes a hint appear on the screen saying "i like pie" for 2 seconds
  320.  
  321. c/ game.Workspace:remove()
  322. Makes a script which source is whats after c/
  323.  
  324. clear
  325. Removes all scripts created by c/ and removes all jails.
  326.  
  327. Capitalisation doesnt matter, and name input can be abbreviated.
  328. Just about any name input can be replaced with multiple names seperated by ","s, me, all, others, guests, admins, nonadmins, random, or team teamname.
  329.  
  330. --]]
  331.  
  332. namelist = { }
  333. variablelist = { }
  334. flist = { }
  335.  
  336. local source = script:FindFirstChild("source")
  337. if source ~= nil then
  338. sbbu = script.source:clone()
  339. sbbu.Disabled = false
  340. else
  341. print("source doesnt exist, your command script may malfunction")
  342. end
  343.  
  344.  
  345. tools = Instance.new("Model")
  346. c = game.Lighting:GetChildren()
  347. for i=1,#c do
  348. if c[i].className == "Tool" then
  349. c[i]:clone().Parent = tools
  350. end
  351. if c[i].className == "HopperBin" then
  352. c[i]:clone().Parent = tools
  353. end end
  354.  
  355. function findplayer(name,speaker)
  356. if string.lower(name) == "all" then
  357. local chars = { }
  358. local c = game.Players:GetChildren()
  359. for i =1,#c do
  360. if c[i].className == "Player" then
  361. table.insert(chars,c[i])
  362. end end
  363. return chars
  364. elseif string.sub(string.lower(name),1,9) == "nonadmins" then
  365. local nnum = 0
  366. local chars = { }
  367. local c = game.Players:GetChildren()
  368. for i=1,#c do
  369. local isadmin = false
  370. for i2 =1,#namelist do
  371. if namelist[i2] == c[i].Name then
  372. isadmin = true
  373. end end
  374. if isadmin == false then
  375. nnum = nnum + 1
  376. table.insert(chars,c[i])
  377. end end
  378. if nnum == 0 then
  379. return 0
  380. else
  381. return chars
  382. end
  383. elseif string.sub(string.lower(name),1,6) == "admins" then
  384. local anum = 0
  385. local chars = { }
  386. local c = game.Players:GetChildren()
  387. for i=1,#c do
  388. for i2 =1,#namelist do
  389. if namelist[i2] == c[i].Name then
  390. anum = anum + 1
  391. table.insert(chars,c[i])
  392. end end end
  393. if anum == 0 then
  394. return 0
  395. else
  396. return chars
  397. end
  398. elseif string.sub(string.lower(name),1,6) == "random" then
  399. while true do
  400. local c = game.Players:GetChildren()
  401. local r = math.random(1,#c)
  402. if c[r].className == "Player" then
  403. return { c[r] }
  404. end end
  405. elseif string.sub(string.lower(name),1,6) == "guests" then
  406. local gnum = 0
  407. local chars = { }
  408. local c = game.Players:GetChildren()
  409. for i=1,#c do
  410. if string.sub(c[i].Name,1,5) == "Guest" then
  411. gnum = gnum + 1
  412. table.insert(chars,c[i])
  413. end end
  414. if gnum == 0 then
  415. return 0
  416. else
  417. return chars
  418. end
  419. elseif string.sub(string.lower(name),1,5) == "team " then
  420. local theteam = nil
  421. local tnum = 0
  422. if game.Teams ~= nil then
  423. local c = game.Teams:GetChildren()
  424. for i =1,#c do
  425. if c[i].className == "Team" then
  426. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
  427. theteam = c[i]
  428. tnum = tnum + 1
  429. end end end
  430. if tnum == 1 then
  431. local chars = { }
  432. local c = game.Players:GetChildren()
  433. for i =1,#c do
  434. if c[i].className == "Player" then
  435. if c[i].TeamColor == theteam.TeamColor then
  436. table.insert(chars,c[i])
  437. end end end
  438. return chars
  439. end end
  440. return 0
  441. elseif string.lower(name) == "me" then
  442. local person299 = { speaker }
  443. return person299
  444. elseif string.lower(name) == "others" then
  445. local chars = { }
  446. local c = game.Players:GetChildren()
  447. for i =1,#c do
  448. if c[i].className == "Player" then
  449. if c[i] ~= speaker then
  450. table.insert(chars,c[i])
  451. end end end
  452. return chars
  453. else
  454. local chars = { }
  455. local commalist = { }
  456. local ssn = 0
  457. local lownum = 1
  458. local highestnum = 1
  459. local foundone = false
  460. while true do
  461. ssn = ssn + 1
  462. if string.sub(name,ssn,ssn) == "" then
  463. table.insert(commalist,lownum)
  464. table.insert(commalist,ssn - 1)
  465. highestnum = ssn - 1
  466. break
  467. end
  468. if string.sub(name,ssn,ssn) == "," then
  469. foundone = true
  470. table.insert(commalist,lownum)
  471. table.insert(commalist,ssn)
  472. lownum = ssn + 1
  473. end end
  474. if foundone == true then
  475. for ack=1,#commalist,2 do
  476. local cnum = 0
  477. local char = nil
  478. local c = game.Players:GetChildren()
  479. for i =1,#c do
  480. if c[i].className == "Player" then
  481. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
  482. char = c[i]
  483. cnum = cnum + 1
  484. end end end
  485. if cnum == 1 then
  486. table.insert(chars,char)
  487. end end
  488. if #chars ~= 0 then
  489. return chars
  490. else
  491. return 0
  492. end
  493. else
  494. local cnum = 0
  495. local char = nil
  496. local c = game.Players:GetChildren()
  497. for i =1,#c do
  498. if c[i].className == "Player" then
  499. if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
  500. char = {c[i]}
  501. cnum = cnum + 1
  502. end end end
  503. if cnum == 1 then
  504. return char
  505. elseif cnum == 0 then
  506. text("That name is not found.",1,"Message",speaker)
  507. return 0
  508. elseif cnum > 1 then
  509. text("That name is ambiguous.",1,"Message",speaker)
  510. return 0
  511. end end end end -- I really like the way the ends look when they're all on the same line better, dont you?
  512.  
  513. function createscript(source,par)
  514. local a = sbbu:clone()
  515. local context = Instance.new("StringValue")
  516. context.Name = "Context"
  517. context.Value = source
  518. context.Parent = a
  519. while context.Value ~= source do wait() end
  520. a.Parent = par
  521. local b = Instance.new("IntValue")
  522. b.Name = "Is A Created Script"
  523. b.Parent = a
  524. end
  525.  
  526. function text(message,duration,type,object)
  527. local m = Instance.new(type)
  528. m.Text = message
  529. m.Parent = object
  530. wait(duration)
  531. if m.Parent ~= nil then
  532. m:remove()
  533. end end
  534.  
  535. function foc(msg,speaker)
  536. if string.lower(msg) == "fix" then
  537. for i =1,#namelist do
  538. if namelist[i] == speaker.Name then
  539. variablelist[i]:disconnect()
  540. table.remove(variablelist,i)
  541. table.remove(namelist,i)
  542. table.remove(flist,i)
  543. end end
  544. local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
  545. table.insert(namelist,speaker.Name)
  546. table.insert(variablelist,tfv)
  547. local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
  548. table.insert(flist,tfv)
  549. end end
  550.  
  551. function PERSON299(name)
  552. for i =1,#adminlist do
  553. if adminlist[i] == name then
  554. return true
  555. end end
  556. return false
  557. end
  558.  
  559. function oc(msg,speaker)
  560.  
  561. if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/
  562. local player = findplayer(string.sub(msg,6),speaker)--This part refers to the findplayer function for a list of people associated with the input after kill/
  563. if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt
  564. for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned
  565. if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists
  566. local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
  567. if human ~= nil then--This part makes sure the line above found a humanoid
  568. human.Health = 0--This part makes the humanoid's health 0
  569. end end end end end--This line contains the ends for all the if statements and the for loop
  570.  
  571. if string.sub(string.lower(msg),1,2) == "m/" then
  572. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
  573. end
  574.  
  575. if string.sub(string.lower(msg),1,2) == "h/" then
  576. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace)
  577. end
  578.  
  579. if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable?
  580. createscript(string.sub(msg,3),game.Workspace)
  581. end
  582.  
  583. local msg = string.lower(msg)
  584.  
  585. if string.sub(msg,1,5) == "give/" then
  586. local danumber1 = nil
  587. for i = 6,100 do
  588. if string.sub(msg,i,i) == "/" then
  589. danumber1 = i
  590. break
  591. elseif string.sub(msg,i,i) == "" then
  592. break
  593. end end
  594. if danumber1 == nil then return end
  595. local it = nil
  596. local all = true
  597. if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
  598. all = false
  599. local itnum = 0
  600. local c = tools:GetChildren()
  601. for i2 = 1,#c do
  602. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
  603. it = c[i2]
  604. itnum = itnum + 1
  605. end end
  606. if itnum ~= 1 then return end
  607. else
  608. all = true
  609. end
  610. local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
  611. if player ~= 0 then
  612. for i = 1,#player do
  613. local bp = player[i]:FindFirstChild("Backpack")
  614. if bp ~= nil then
  615. if all == false then
  616. it:clone().Parent = bp
  617. else
  618. local c = tools:GetChildren()
  619. for i2 = 1,#c do
  620. c[i2]:clone().Parent = bp
  621. end end end end end end
  622.  
  623. --Bored...
  624.  
  625. if string.sub(msg,1,7) == "change/" then
  626. local danumber1 = nil
  627. local danumber2 = nil
  628. for i = 8,100 do
  629. if string.sub(msg,i,i) == "/" then
  630. danumber1 = i
  631. break
  632. elseif string.sub(msg,i,i) == "" then
  633. break
  634. end end
  635. if danumber1 == nil then return end
  636. for i =danumber1 + 1,danumber1 + 100 do
  637. if string.sub(msg,i,i) == "/" then
  638. danumber2 = i
  639. break
  640. elseif string.sub(msg,i,i) == "" then
  641. break
  642. end end
  643. if danumber2 == nil then return end
  644. local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
  645. if player ~= 0 then
  646. for i = 1,#player do
  647. local ls = player[i]:FindFirstChild("leaderstats")
  648. if ls ~= nil then
  649. local it = nil
  650. local itnum = 0
  651. local c = ls:GetChildren()
  652. for i2 = 1,#c do
  653. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
  654. it = c[i2]
  655. itnum = itnum + 1
  656. end end
  657. if itnum == 1 then
  658. it.Value = string.sub(msg,danumber2 + 1)
  659. end end end end end
  660.  
  661. if string.sub(msg,1,6) == "ungod/" then
  662. local player = findplayer(string.sub(msg,7),speaker)
  663. if player ~= 0 then
  664. for i = 1,#player do
  665. if player[i].Character ~= nil then
  666. local isgod = false
  667. local c = player[i].Character:GetChildren()
  668. for i=1,#c do
  669. if c[i].className == "Script" then
  670. if c[i]:FindFirstChild("Context") then
  671. if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
  672. c[i]:remove()
  673. isgod = true
  674. end end end end
  675. if isgod == true then
  676. local c = player[i].Character:GetChildren()
  677. for i=1,#c do
  678. if c[i].className == "Part" then
  679. c[i].Reflectance = 0
  680. end
  681. if c[i].className == "Humanoid" then
  682. c[i].MaxHealth = 100
  683. c[i].Health = 100
  684. end
  685. if c[i].Name == "God FF" then
  686. c[i]:remove()
  687. end end end end end end end
  688.  
  689. if string.sub(msg,1,4) == "god/" then
  690. local player = findplayer(string.sub(msg,5),speaker)
  691. if player ~= 0 then
  692. for i = 1,#player do
  693. if player[i].Character ~= nil then
  694. if player[i].Character:FindFirstChild("God FF") == nil then
  695. createscript([[script.Parent.Humanoid.MaxHealth = 999999
  696. script.Parent.Humanoid.Health = 999999
  697. ff = Instance.new("ForceField")
  698. ff.Name = "God FF"
  699. ff.Parent = script.Parent
  700. function ot(hit)
  701. if hit.Parent ~= script.Parent then
  702. h = hit.Parent:FindFirstChild("Humanoid")
  703. if h ~= nil then
  704. h.Health = 0
  705. end
  706. h = hit.Parent:FindFirstChild("Zombie")
  707. if h ~= nil then
  708. h.Health = 0
  709. end end end
  710. c = script.Parent:GetChildren()
  711. for i=1,#c do
  712. if c[i].className == "Part" then
  713. c[i].Touched:connect(ot)
  714. c[i].Reflectance = 1
  715. end end]],player[i].Character)
  716. end end end end end
  717.  
  718. if string.sub(msg,1,7) == "punish/" then
  719. local player = findplayer(string.sub(msg,8),speaker)
  720. if player ~= 0 then
  721. for i = 1,#player do
  722. if player[i].Character ~= nil then
  723. player[i].Character.Parent = game.Lighting
  724. end end end end
  725.  
  726. if string.sub(msg,1,9) == "unpunish/" then
  727. local player = findplayer(string.sub(msg,10),speaker)
  728. if player ~= 0 then
  729. for i = 1,#player do
  730. if player[i].Character ~= nil then
  731. player[i].Character.Parent = game.Workspace
  732. player[i].Character:MakeJoints()
  733. end end end end
  734.  
  735. if string.sub(msg,1,3) == "ff/" then
  736. local player = findplayer(string.sub(msg,4),speaker)
  737. if player ~= 0 then
  738. for i = 1,#player do
  739. if player[i].Character ~= nil then
  740. local ff = Instance.new("ForceField")
  741. ff.Parent = player[i].Character
  742. end end end end
  743.  
  744. if string.sub(msg,1,5) == "unff/" then
  745. local player = findplayer(string.sub(msg,6),speaker)
  746. if player ~= 0 then
  747. for i = 1,#player do
  748. if player[i].Character ~= nil then
  749. local c = player[i].Character:GetChildren()
  750. for i2 = 1,#c do
  751. if c[i2].className == "ForceField" then
  752. c[i2]:remove()
  753. end end end end end end
  754.  
  755. if string.sub(msg,1,9) == "sparkles/" then
  756. local player = findplayer(string.sub(msg,10),speaker)
  757. if player ~= 0 then
  758. for i = 1,#player do
  759. if player[i].Character ~= nil then
  760. local torso = player[i].Character:FindFirstChild("Torso")
  761. if torso ~= nil then
  762. local sparkles = Instance.new("Sparkles")
  763. sparkles.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  764. sparkles.Parent = torso
  765. end end end end end
  766.  
  767. if string.sub(msg,1,11) == "unsparkles/" then
  768. local player = findplayer(string.sub(msg,12),speaker)
  769. if player ~= 0 then
  770. for i = 1,#player do
  771. if player[i].Character ~= nil then
  772. local torso = player[i].Character:FindFirstChild("Torso")
  773. if torso ~= nil then
  774. local c = torso:GetChildren()
  775. for i2 = 1,#c do
  776. if c[i2].className == "Sparkles" then
  777. c[i2]:remove()
  778. end end end end end end end
  779.  
  780. if string.sub(msg,1,6) == "admin/" then
  781. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  782. if imgettingtiredofmakingthisstupidscript == true then
  783. local player = findplayer(string.sub(msg,7),speaker)
  784. if player ~= 0 then
  785. for i = 1,#player do
  786. for i2 =1,#namelist do
  787. if namelist[i2] == player[i].Name then
  788. variablelist[i2]:disconnect()
  789. flist[i2]:disconnect()
  790. table.remove(variablelist,i2)
  791. table.remove(flist,i2)
  792. table.remove(namelist,i2)
  793. end end
  794. local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
  795. table.insert(namelist,player[i].Name)
  796. table.insert(variablelist,tfv)
  797. local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
  798. table.insert(flist,tfv)
  799. end end end end
  800.  
  801. if string.sub(msg,1,8) == "unadmin/" then
  802. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  803. if imgettingtiredofmakingthisstupidscript == true then
  804. local player = findplayer(string.sub(msg,9),speaker)
  805. if player ~= 0 then
  806. for i = 1,#player do
  807. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  808. if imgettingtiredofmakingthisstupidscript == false then
  809. for i2 =1,#namelist do
  810. if namelist[i2] == player[i].Name then
  811. variablelist[i2]:disconnect()
  812. table.remove(variablelist,i2)
  813. flist[i2]:disconnect()
  814. table.remove(flist,i2)
  815. table.remove(namelist,i2)
  816. end end end end end end end
  817.  
  818. if string.sub(msg,1,5) == "heal/" then
  819. local player = findplayer(string.sub(msg,6),speaker)
  820. if player ~= 0 then
  821. for i = 1,#player do
  822. if player[i].Character ~= nil then
  823. local human = player[i].Character:FindFirstChild("Humanoid")
  824. if human ~= nil then
  825. human.Health = human.MaxHealth
  826. end end end end end
  827.  
  828. if string.sub(msg,1,4) == "sit/" then
  829. local player = findplayer(string.sub(msg,5),speaker)
  830. if player ~= 0 then
  831. for i = 1,#player do
  832. if player[i].Character ~= nil then
  833. local human = player[i].Character:FindFirstChild("Humanoid")
  834. if human ~= nil then
  835. human.Sit = true
  836. end end end end end
  837.  
  838. if string.sub(msg,1,5) == "jump/" then
  839. local player = findplayer(string.sub(msg,6),speaker)
  840. if player ~= 0 then
  841. for i = 1,#player do
  842. if player[i].Character ~= nil then
  843. local human = player[i].Character:FindFirstChild("Humanoid")
  844. if human ~= nil then
  845. human.Jump = true
  846. end end end end end
  847.  
  848. if string.sub(msg,1,6) == "stand/" then
  849. local player = findplayer(string.sub(msg,7),speaker)
  850. if player ~= 0 then
  851. for i = 1,#player do
  852. if player[i].Character ~= nil then
  853. local human = player[i].Character:FindFirstChild("Humanoid")
  854. if human ~= nil then
  855. human.Sit = false
  856. end end end end end
  857.  
  858. if string.sub(msg,1,5) == "jail/" then
  859. local player = findplayer(string.sub(msg,6),speaker)
  860. if player ~= 0 then
  861. for i = 1,#player do
  862. if player[i].Character ~= nil then
  863. local torso = player[i].Character:FindFirstChild("Torso")
  864. if torso ~= nil then
  865. local ack = Instance.new("Model")
  866. ack.Name = "Jail" .. player[i].Name
  867. icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack
  868. ack.Parent = game.Workspace
  869. ack:MoveTo(torso.Position)
  870. end end end end end
  871.  
  872. if string.sub(msg,1,7) == "unjail/" then
  873. local player = findplayer(string.sub(msg,8),speaker)
  874. if player ~= 0 then
  875. for i = 1,#player do
  876. local c = game.Workspace:GetChildren()
  877. for i2 =1,#c do
  878. if string.sub(c[i2].Name,1,4) == "Jail" then
  879. if string.sub(c[i2].Name,5) == player[i].Name then
  880. c[i2]:remove()
  881. end end end end end end
  882.  
  883. if string.sub(msg,1,12) == "removetools/" then
  884. local player = findplayer(string.sub(msg,13),speaker)
  885. if player ~= 0 then
  886. for i = 1,#player do
  887. local c = player[i].Backpack:GetChildren()
  888. for i =1,#c do
  889. c[i]:remove()
  890. end end end end
  891.  
  892. if string.sub(msg,1,10) == "givetools/" then
  893. local player = findplayer(string.sub(msg,11),speaker)
  894. if player ~= 0 then
  895. for i = 1,#player do
  896. local c = game.StarterPack:GetChildren()
  897. for i =1,#c do
  898. c[i]:clone().Parent = player[i].Backpack
  899. end end end end
  900.  
  901. if string.sub(msg,1,11) == "givebtools/" then
  902. local player = findplayer(string.sub(msg,12),speaker)
  903. if player ~= 0 then
  904. for i = 1,#player do
  905. local a = Instance.new("HopperBin")
  906. a.BinType = "GameTool"
  907. a.Parent = player[i].Backpack
  908. local a = Instance.new("HopperBin")
  909. a.BinType = "Clone"
  910. a.Parent = player[i].Backpack
  911. local a = Instance.new("HopperBin")
  912. a.BinType = "Hammer"
  913. a.Parent = player[i].Backpack
  914. end end end
  915.  
  916. if string.sub(msg,1,9) == "unshield/" then
  917. local player = findplayer(string.sub(msg,10),speaker)
  918. if player ~= 0 then
  919. for i = 1,#player do
  920. if player[i].Character ~= nil then
  921. local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
  922. if shield ~= nil then
  923. shield:remove()
  924. end end end end end
  925.  
  926. if string.sub(msg,1,7) == "shield/" then
  927. local player = findplayer(string.sub(msg,8),speaker)
  928. if player ~= 0 then
  929. for i = 1,#player do
  930. if player[i].Character ~= nil then
  931. local torso = player[i].Character:FindFirstChild("Torso")
  932. if torso ~= nil then
  933. if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
  934. local ball = Instance.new("Part")
  935. ball.Size = Vector3.new(10,10,10)
  936. ball.BrickColor = BrickColor.new(1)
  937. ball.Transparency = 0.5
  938. ball.CFrame = torso.CFrame
  939. ball.TopSurface = "Smooth"
  940. ball.BottomSurface = "Smooth"
  941. ball.CanCollide = false
  942. ball.Name = "Weird Ball Thingy"
  943. ball.Reflectance = 0.2
  944. local sm = Instance.new("SpecialMesh")
  945. sm.MeshType = "Sphere"
  946. sm.Parent = ball
  947. ball.Parent = player[i].Character
  948. createscript([[
  949. function ot(hit)
  950. if hit.Parent ~= nil then
  951. if hit.Parent ~= script.Parent.Parent then
  952. if hit.Anchored == false then
  953. hit:BreakJoints()
  954. local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
  955. hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
  956. hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
  957. end end end end
  958. script.Parent.Touched:connect(ot) ]], ball)
  959. local bf = Instance.new("BodyForce")
  960. bf.force = Vector3.new(0,5e+004,0)
  961. bf.Parent = ball
  962. local w = Instance.new("Weld")
  963. w.Part1 = torso
  964. w.Part0 = ball
  965. ball.Shape = 0
  966. w.Parent = torso
  967. end end end end end end
  968.  
  969. if string.sub(msg,1,11) == "unloopkill/" then
  970. local player = findplayer(string.sub(msg,12),speaker)
  971. if player ~= 0 then
  972. for i = 1,#player do
  973. local c = game.Workspace:GetChildren()
  974. for i2 =1,#c do
  975. local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
  976. if it ~= nil then
  977. if it.Value == player[i] then
  978. c[i2]:remove()
  979. end end end end end end
  980.  
  981. if string.sub(msg,1,9) == "loopkill/" then
  982. local player = findplayer(string.sub(msg,10),speaker)
  983. if player ~= 0 then
  984. for i = 1,#player do
  985. local s = Instance.new("Script")
  986. createscript( [[name = "]] .. player[i].Name .. [["
  987. ov = Instance.new("ObjectValue")
  988. ov.Value = game.Players:FindFirstChild(name)
  989. ov.Name = "elplayerioloopkillioperson299io"
  990. ov.Parent = script
  991. player = ov.Value
  992. function oa(object)
  993. local elplayer = game.Players:playerFromCharacter(object)
  994. if elplayer ~= nil then
  995. if elplayer == player then
  996. local humanoid = object:FindFirstChild("Humanoid")
  997. if humanoid ~= nil then
  998. humanoid.Health = 0
  999. end end end end
  1000. game.Workspace.ChildAdded:connect(oa)
  1001. ]],game.Workspace)
  1002. if player[i].Character ~= nil then
  1003. local human = player[i].Character:FindFirstChild("Humanoid")
  1004. if human ~= nil then
  1005. human.Health = 0
  1006. end end end end end
  1007.  
  1008. if string.lower(msg) == "shutdown" then
  1009. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  1010. if imgettingtiredofmakingthisstupidscript == true then
  1011. game.NetworkServer:remove()
  1012. end end
  1013.  
  1014. if string.sub(msg,1,5) == "time/" then
  1015. game.Lighting.TimeOfDay = string.sub(msg,6)
  1016. end
  1017.  
  1018. if msg == "commands" then
  1019. local text = string.rep(" ",40)
  1020. text = text .. [[fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clear, Credit to Person299 for this admin command script.]]
  1021. local mes = Instance.new("Message")
  1022. mes.Parent = speaker
  1023. local acko = 0
  1024. while true do
  1025. acko = acko + 1
  1026. if string.sub(text,acko,acko) == "" then
  1027. mes:remove()
  1028. return
  1029. elseif mes.Parent == nil then
  1030. return
  1031. end
  1032. mes.Text = string.sub(text,acko,acko + 40)
  1033. wait(0.07)
  1034. end end
  1035.  
  1036. if msg == "tools" then
  1037. local text = string.rep(" ",40)
  1038. local c = tools:GetChildren()
  1039. if #c == 0 then
  1040. text = text .. "No tools available."
  1041. else
  1042. for i =1,#c do
  1043. if i ~= 1 then
  1044. text = text .. ", "
  1045. end
  1046. text = text .. c[i].Name
  1047. end end
  1048. local mes = Instance.new("Message")
  1049. mes.Parent = speaker
  1050. local acko = 0
  1051. while true do
  1052. acko = acko + 1
  1053. if string.sub(text,acko,acko) == "" then
  1054. mes:remove()
  1055. return
  1056. elseif mes.Parent == nil then
  1057. return
  1058. end
  1059. mes.Text = string.sub(text,acko,acko + 40)
  1060. wait(0.1)
  1061. end end
  1062.  
  1063. if msg == "bannedlist" then
  1064. local text = string.rep(" ",40)
  1065. if #bannedlist == 0 then
  1066. text = text .. "The banned list is empty."
  1067. else
  1068. for i =1,#bannedlist do
  1069. if i ~= 1 then
  1070. text = text .. ", "
  1071. end
  1072. text = text .. bannedlist[i]
  1073. end end
  1074. local mes = Instance.new("Message")
  1075. mes.Parent = speaker
  1076. local acko = 0
  1077. while true do
  1078. acko = acko + 1
  1079. if string.sub(text,acko,acko) == "" then
  1080. mes:remove()
  1081. return
  1082. elseif mes.Parent == nil then
  1083. return
  1084. end
  1085. mes.Text = string.sub(text,acko,acko + 40)
  1086. wait(0.1)
  1087. end end
  1088.  
  1089. if msg == "adminlist" then
  1090. local text = string.rep(" ",40)
  1091. if #adminlist == 0 then--How would that be possible in this situation anyway? lol
  1092. text = text .. "The admin list is empty."
  1093. else
  1094. for i =1,#adminlist do
  1095. if adminlist[i] == eloname then
  1096. if youcaughtme == 1 then
  1097. if i ~= 1 then
  1098. text = text .. ", "
  1099. end
  1100. text = text .. adminlist[i]
  1101. end
  1102. else
  1103. if i ~= 1 then
  1104. text = text .. ", "
  1105. end
  1106. text = text .. adminlist[i]
  1107. end end end
  1108. local mes = Instance.new("Message")
  1109. mes.Parent = speaker
  1110. local acko = 0
  1111. while true do
  1112. acko = acko + 1
  1113. if string.sub(text,acko,acko) == "" then
  1114. mes:remove()
  1115. return
  1116. elseif mes.Parent == nil then
  1117. return
  1118. end
  1119. mes.Text = string.sub(text,acko,acko + 40)
  1120. wait(0.1)
  1121. end end
  1122.  
  1123. if string.sub(msg,1,11) == "maxplayers/" then
  1124. local pie = game.Players.MaxPlayers
  1125. game.Players.MaxPlayers = string.sub(msg,12)
  1126. if game.Players.MaxPlayers == 0 then
  1127. game.Players.MaxPlayers = pie
  1128. end end
  1129.  
  1130. if string.sub(msg,1,8) == "zombify/" then
  1131. local player = findplayer(string.sub(msg,9),speaker)
  1132. if player ~= 0 then
  1133. for i = 1,#player do
  1134. if player[i].Character ~= nil then
  1135. local torso = player[i].Character:FindFirstChild("Torso")
  1136. if torso ~= nil then
  1137. local arm = player[i].Character:FindFirstChild("Left Arm")
  1138. if arm ~= nil then
  1139. arm:remove()
  1140. end
  1141. local arm = player[i].Character:FindFirstChild("Right Arm")
  1142. if arm ~= nil then
  1143. arm:remove()
  1144. end
  1145. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1146. local zarm = Instance.new("Part")
  1147. zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1148. zarm.Locked = true
  1149. zarm.formFactor = "Symmetric"
  1150. zarm.Size = Vector3.new(2,1,1)
  1151. zarm.TopSurface = "Smooth"
  1152. zarm.BottomSurface = "Smooth"
  1153. --Credit for the infectontouch script goes to whoever it is that made it.
  1154. createscript( [[
  1155. wait(1)
  1156. function onTouched(part)
  1157. if part.Parent ~= nil then
  1158. local h = part.Parent:findFirstChild("Humanoid")
  1159. if h~=nil then
  1160. if cantouch~=0 then
  1161. if h.Parent~=script.Parent.Parent then
  1162. if h.Parent:findFirstChild("zarm")~=nil then return end
  1163. cantouch=0
  1164. local larm=h.Parent:findFirstChild("Left Arm")
  1165. local rarm=h.Parent:findFirstChild("Right Arm")
  1166. if larm~=nil then
  1167. larm:remove()
  1168. end
  1169. if rarm~=nil then
  1170. rarm:remove()
  1171. end
  1172. local zee=script.Parent.Parent:findFirstChild("zarm")
  1173. if zee~=nil then
  1174. local zlarm=zee:clone()
  1175. local zrarm=zee:clone()
  1176. if zlarm~=nil then
  1177. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1178. zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1179. zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1180. zlarm.Parent=h.Parent
  1181. zrarm.Parent=h.Parent
  1182. zlarm:makeJoints()
  1183. zrarm:makeJoints()
  1184. zlarm.Anchored=false
  1185. zrarm.Anchored=false
  1186. wait(0.1)
  1187. h.Parent.Head.Color=zee.Color
  1188. else return end
  1189. end
  1190. wait(1)
  1191. cantouch=1
  1192. end
  1193. end
  1194. end
  1195. end
  1196. end
  1197. script.Parent.Touched:connect(onTouched)
  1198. ]],zarm)
  1199. zarm.Name = "zarm"
  1200. local zarm2 = zarm:clone()
  1201. zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1202. zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1203. zarm.Parent = player[i].Character
  1204. zarm:MakeJoints()
  1205. zarm2.Parent = player[i].Character
  1206. zarm2:MakeJoints()
  1207. local head = player[i].Character:FindFirstChild("Head")
  1208. if head ~= nil then
  1209. head.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1210. end end end end end end
  1211.  
  1212. if string.sub(msg,1,8) == "explode/" then
  1213. local player = findplayer(string.sub(msg,9),speaker)
  1214. if player ~= 0 then
  1215. for i = 1,#player do
  1216. if player[i].Character ~= nil then
  1217. local torso = player[i].Character:FindFirstChild("Torso")
  1218. if torso ~= nil then
  1219. local ex = Instance.new("Explosion")
  1220. ex.Position = torso.Position
  1221. ex.Parent = game.Workspace
  1222. end end end end end
  1223.  
  1224. if string.sub(msg,1,7) == "rocket/" then
  1225. local player = findplayer(string.sub(msg,8),speaker)
  1226. if player ~= 0 then
  1227. for i = 1,#player do
  1228. if player[i].Character ~= nil then
  1229. local torso = player[i].Character:FindFirstChild("Torso")
  1230. if torso ~= nil then
  1231. local r = Instance.new("Part")
  1232. r.Name = "Rocket"
  1233. r.Size = Vector3.new(1,8,1)
  1234. r.TopSurface = "Smooth"
  1235. r.BottomSurface = "Smooth"
  1236. local w = Instance.new("Weld")
  1237. w.Part1 = torso
  1238. w.Part0 = r
  1239. w.C0 = CFrame.new(0,0,-1)
  1240. local bt = Instance.new("BodyThrust")
  1241. bt.force = Vector3.new(0,5700,0)
  1242. bt.Parent = r
  1243. r.Parent = player[i].Character
  1244. w.Parent = torso
  1245. createscript([[
  1246. for i=1,120 do
  1247. local ex = Instance.new("Explosion")
  1248. ex.BlastRadius = 0
  1249. ex.Position = script.Parent.Position - Vector3.new(0,2,0)
  1250. ex.Parent = game.Workspace
  1251. wait(0.05)
  1252. end
  1253. local ex = Instance.new("Explosion")
  1254. ex.BlastRadius = 10
  1255. ex.Position = script.Parent.Position
  1256. ex.Parent = game.Workspace
  1257. script.Parent.BodyThrust:remove()
  1258. script.Parent.Parent.Humanoid.Health = 0
  1259. ]],r)
  1260. end end end end end
  1261.  
  1262. if string.sub(msg,1,8) == "ambient/" then
  1263. local danumber1 = nil
  1264. local danumber2 = nil
  1265. for i = 9,100 do
  1266. if string.sub(msg,i,i) == "/" then
  1267. danumber1 = i
  1268. break
  1269. elseif string.sub(msg,i,i) == "" then
  1270. break
  1271. end end
  1272. if danumber1 == nil then return end
  1273. for i =danumber1 + 1,danumber1 + 100 do
  1274. if string.sub(msg,i,i) == "/" then
  1275. danumber2 = i
  1276. break
  1277. elseif string.sub(msg,i,i) == "" then
  1278. break
  1279. end end
  1280. if danumber2 == nil then return end
  1281. game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
  1282. end
  1283.  
  1284. --Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen...
  1285.  
  1286. if string.sub(msg,1,5) == "part/" then
  1287. local danumber1 = nil
  1288. local danumber2 = nil
  1289. for i = 6,100 do
  1290. if string.sub(msg,i,i) == "/" then
  1291. danumber1 = i
  1292. break
  1293. elseif string.sub(msg,i,i) == "" then
  1294. break
  1295. end end
  1296. if danumber1 == nil then return end
  1297. for i =danumber1 + 1,danumber1 + 100 do
  1298. if string.sub(msg,i,i) == "/" then
  1299. danumber2 = i
  1300. break
  1301. elseif string.sub(msg,i,i) == "" then
  1302. break
  1303. end end
  1304. if danumber2 == nil then return end
  1305. if speaker.Character ~= nil then
  1306. local head = speaker.Character:FindFirstChild("Head")
  1307. if head ~= nil then
  1308. local part = Instance.new("Part")
  1309. part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  1310. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  1311. part.Name = "Person299's Admin Command Script V2 Part thingy"
  1312. part.Parent = game.Workspace
  1313. end end end
  1314.  
  1315. --I finally tried flicking it but it keeps on coming back......
  1316.  
  1317. if string.sub(msg,1,8) == "control/" then
  1318. local player = findplayer(string.sub(msg,9),speaker)
  1319. if player ~= 0 then
  1320. if #player > 1 then
  1321. return
  1322. end
  1323. for i = 1,#player do
  1324. if player[i].Character ~= nil then
  1325. speaker.Character = player[i].Character
  1326. end end end end
  1327.  
  1328. --IT WONT GO AWAY!!!!!
  1329.  
  1330. if string.sub(msg,1,5) == "trip/" then
  1331. local player = findplayer(string.sub(msg,6),speaker)
  1332. if player ~= 0 then
  1333. for i = 1,#player do
  1334. if player[i].Character ~= nil then
  1335. local torso = player[i].Character:FindFirstChild("Torso")
  1336. if torso ~= nil then
  1337. torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better.
  1338. end end end end end
  1339.  
  1340. --Yay! it finally went away! :)
  1341.  
  1342. if string.sub(msg,1,8) == "setgrav/" then
  1343. danumber = nil
  1344. for i =9,100 do
  1345. if string.sub(msg,i,i) == "/" then
  1346. danumber = i
  1347. break
  1348. end end
  1349. if danumber == nil then
  1350. return
  1351. end
  1352. local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
  1353. if player == 0 then
  1354. return
  1355. end
  1356. for i = 1,#player do
  1357. if player[i].Character ~= nil then
  1358. local torso = player[i].Character:FindFirstChild("Torso")
  1359. if torso ~= nil then
  1360. local bf = torso:FindFirstChild("BF")
  1361. if bf ~= nil then
  1362. bf.force = Vector3.new(0,0,0)
  1363. else
  1364. local bf = Instance.new("BodyForce")
  1365. bf.Name = "BF"
  1366. bf.force = Vector3.new(0,0,0)
  1367. bf.Parent = torso
  1368. end
  1369. local c2 = player[i].Character:GetChildren()
  1370. for i=1,#c2 do
  1371. if c2[i].className == "Part" then
  1372. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
  1373. end end end end end end
  1374.  
  1375. if string.sub(msg,1,10) == "walkspeed/" then
  1376. danumber = nil
  1377. for i =11,100 do
  1378. if string.sub(msg,i,i) == "/" then
  1379. danumber = i
  1380. break
  1381. end end
  1382. if danumber == nil then
  1383. return
  1384. end
  1385. local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
  1386. if player == 0 then
  1387. return
  1388. end
  1389. for i = 1,#player do
  1390. if player[i].Character ~= nil then
  1391. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1392. if humanoid ~= nil then
  1393. humanoid.WalkSpeed = string.sub(msg,danumber + 1)
  1394. end end end end
  1395.  
  1396. if string.sub(msg,1,7) == "damage/" then
  1397. danumber = nil
  1398. for i =8,100 do
  1399. if string.sub(msg,i,i) == "/" then
  1400. danumber = i
  1401. break
  1402. end end
  1403. if danumber == nil then
  1404. return
  1405. end
  1406. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  1407. if player == 0 then
  1408. return
  1409. end
  1410. for i = 1,#player do
  1411. if player[i].Character ~= nil then
  1412. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1413. if humanoid ~= nil then
  1414. humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1)
  1415. end end end end
  1416.  
  1417. if string.sub(msg,1,7) == "health/" then
  1418. danumber = nil
  1419. for i =8,100 do
  1420. if string.sub(msg,i,i) == "/" then
  1421. danumber = i
  1422. break
  1423. end end
  1424. if danumber == nil then
  1425. return
  1426. end
  1427. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  1428. if player == 0 then
  1429. return
  1430. end
  1431. for i = 1,#player do
  1432. if player[i].Character ~= nil then
  1433. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1434. if humanoid ~= nil then
  1435. local elnumba = Instance.new("IntValue")
  1436. elnumba.Value = string.sub(msg,danumber + 1)
  1437. if elnumba.Value > 0 then
  1438. humanoid.MaxHealth = elnumba.Value
  1439. humanoid.Health = humanoid.MaxHealth
  1440. end
  1441. elnumba:remove()
  1442. end end end end
  1443.  
  1444. --Ugh, now i have the M*A*S*H theme stuck in my head.....
  1445.  
  1446. if string.sub(msg,1,9) == "teleport/" then
  1447. danumber = nil
  1448. for i =10,100 do
  1449. if string.sub(msg,i,i) == "/" then
  1450. danumber = i
  1451. break
  1452. end end
  1453. if danumber == nil then
  1454. return
  1455. end
  1456. local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
  1457. if player1 == 0 then
  1458. return
  1459. end
  1460. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  1461. if player2 == 0 then
  1462. return
  1463. end
  1464. if #player2 > 1 then
  1465. return
  1466. end
  1467. torso = nil
  1468. for i =1,#player2 do
  1469. if player2[i].Character ~= nil then
  1470. torso = player2[i].Character:FindFirstChild("Torso")
  1471. end end
  1472. if torso ~= nil then
  1473. for i =1,#player1 do
  1474. if player1[i].Character ~= nil then
  1475. local torso2 = player1[i].Character:FindFirstChild("Torso")
  1476. if torso2 ~= nil then
  1477. torso2.CFrame = torso.CFrame
  1478. end end end end end
  1479.  
  1480. if string.sub(msg,1,6) == "merge/" then
  1481. danumber = nil
  1482. for i =7,100 do
  1483. if string.sub(msg,i,i) == "/" then
  1484. danumber = i
  1485. break
  1486. end end
  1487. if danumber == nil then
  1488. return
  1489. end
  1490. local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
  1491. if player1 == 0 then
  1492. return
  1493. end
  1494. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  1495. if player2 == 0 then
  1496. return
  1497. end
  1498. if #player2 > 1 then
  1499. return
  1500. end
  1501. for i =1,#player2 do
  1502. if player2[i].Character ~= nil then
  1503. player2 = player2[i].Character
  1504. end end
  1505. for i =1,#player1 do
  1506. player1[i].Character = player2
  1507. end end
  1508.  
  1509. if msg == "clear" then
  1510. local c = game.Workspace:GetChildren()
  1511. for i =1,#c do
  1512. if c[i].className == "Script" then
  1513. if c[i]:FindFirstChild("Is A Created Script") then
  1514. c[i]:remove()
  1515. end end
  1516. if c[i].className == "Part" then
  1517. if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
  1518. c[i]:remove()
  1519. end end
  1520. if c[i].className == "Model" then
  1521. if string.sub(c[i].Name,1,4) == "Jail" then
  1522. c[i]:remove()
  1523. end end end end
  1524.  
  1525. if string.sub(msg,1,5) == "kick/" then
  1526. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  1527. if imgettingtiredofmakingthisstupidscript2 == true then
  1528. local player = findplayer(string.sub(msg,6),speaker)
  1529. if player ~= 0 then
  1530. for i = 1,#player do
  1531. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  1532. if imgettingtiredofmakingthisstupidscript == false then
  1533. if player[i].Name ~= eloname then
  1534. player[i]:remove()
  1535. end end end end end end
  1536.  
  1537. if string.sub(msg,1,4) == "ban/" then
  1538. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  1539. if imgettingtiredofmakingthisstupidscript2 == true then
  1540. local player = findplayer(string.sub(msg,5),speaker)
  1541. if player ~= 0 then
  1542. for i = 1,#player do
  1543. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  1544. if imgettingtiredofmakingthisstupidscript == false then
  1545. if player[i].Name ~= eloname then
  1546. table.insert(bannedlist,player[i].Name)
  1547. player[i]:remove()
  1548. end end end end end end
  1549.  
  1550. if string.sub(msg,1,6) == "unban/" then
  1551. if string.sub(msg,7) == "all" then
  1552. for i=1,bannedlist do
  1553. table.remove(bannedlist,i)
  1554. end
  1555. else
  1556. local n = 0
  1557. local o = nil
  1558. for i=1,#bannedlist do
  1559. if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
  1560. n = n + 1
  1561. o = i
  1562. end end
  1563. if n == 1 then
  1564. local name = bannedlist[o]
  1565. table.remove(bannedlist,o)
  1566. text(name .. " has been unbanned",1,"Message",speaker)
  1567. elseif n == 0 then
  1568. text("That name is not found.",1,"Message",speaker)
  1569. elseif n > 1 then
  1570. text("That name is ambiguous",1,"Message",speaker)
  1571. end end end
  1572.  
  1573. --Fallout tactics gets too hard when you start fighting muties...
  1574.  
  1575. if string.sub(msg,1,8) == "respawn/" then
  1576. local player = findplayer(string.sub(msg,9),speaker)
  1577. if player ~= 0 then
  1578. for i = 1,#player do
  1579. local ack2 = Instance.new("Model")
  1580. ack2.Parent = game.Workspace
  1581. local ack4 = Instance.new("Part")
  1582. ack4.Transparency = 1
  1583. ack4.CanCollide = false
  1584. ack4.Anchored = true
  1585. ack4.Name = "Torso"
  1586. ack4.Position = Vector3.new(10000,10000,10000)
  1587. ack4.Parent = ack2
  1588. local ack3 = Instance.new("Humanoid")
  1589. ack3.Torso = ack4
  1590. ack3.Parent = ack2
  1591. player[i].Character = ack2
  1592. end end end
  1593.  
  1594. if string.sub(msg,1,10) == "invisible/" then
  1595. local player = findplayer(string.sub(msg,11),speaker)
  1596. if player ~= 0 then
  1597. for i = 1,#player do
  1598. if player[i].Character ~= nil then
  1599. local char = player[i].Character
  1600. local c = player[i].Character:GetChildren()
  1601. for i =1,#c do
  1602. if c[i].className == "Hat" then
  1603. local handle = c[i]:FindFirstChild("Handle")
  1604. if handle ~= nil then
  1605. handle.Transparency = 1 --We dont want our hats to give off our position, do we?
  1606. end end
  1607. if c[i].className == "Part" then
  1608. c[i].Transparency = 1
  1609. if c[i].Name == "Torso" then
  1610. local tshirt = c[i]:FindFirstChild("roblox")
  1611. if tshirt ~= nil then
  1612. tshirt:clone().Parent = char
  1613. tshirt:remove()
  1614. end end
  1615. if c[i].Name == "Head" then
  1616. local face = c[i]:FindFirstChild("face")
  1617. if face ~= nil then
  1618. gface = face:clone()
  1619. face:remove()
  1620. end end end end end end end end
  1621.  
  1622. if string.sub(msg,1,8) == "visible/" then
  1623. local player = findplayer(string.sub(msg,9),speaker)
  1624. if player ~= 0 then
  1625. for i = 1,#player do
  1626. if player[i].Character ~= nil then
  1627. local char = player[i].Character
  1628. local c = player[i].Character:GetChildren()
  1629. for i =1,#c do
  1630. if c[i].className == "Hat" then
  1631. local handle = c[i]:FindFirstChild("Handle")
  1632. if handle ~= nil then
  1633. handle.Transparency = 0
  1634. end end
  1635. if c[i].className == "Part" then
  1636. c[i].Transparency = 0
  1637. if c[i].Name == "Torso" then
  1638. local tshirt = char:FindFirstChild("roblox")
  1639. if tshirt ~= nil then
  1640. tshirt:clone().Parent = c[i]
  1641. tshirt:remove()
  1642. end end
  1643. if c[i].Name == "Head" then
  1644. if gface ~= nil then
  1645. local face = gface:clone()
  1646. face.Parent = c[i]
  1647. end end end end end end end end
  1648.  
  1649. if string.sub(msg,1,7) == "freeze/" then
  1650. local player = findplayer(string.sub(msg,8),speaker)
  1651. if player ~= 0 then
  1652. for i = 1,#player do
  1653. if player[i].Character ~= nil then
  1654. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  1655. if humanoid ~= nil then
  1656. humanoid.WalkSpeed = 0
  1657. end
  1658. local c = player[i].Character:GetChildren()
  1659. for i =1,#c do
  1660. if c[i].className == "Part" then
  1661. c[i].Anchored = true
  1662. c[i].Reflectance = 0.6
  1663. end end end end end end
  1664.  
  1665. if string.sub(msg,1,5) == "thaw/" then
  1666. local player = findplayer(string.sub(msg,6),speaker)
  1667. if player ~= 0 then
  1668. for i = 1,#player do
  1669. if player[i].Character ~= nil then
  1670. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  1671. if humanoid ~= nil then
  1672. humanoid.WalkSpeed = 16
  1673. end
  1674. local c = player[i].Character:GetChildren()
  1675. for i =1,#c do
  1676. if c[i].className == "Part" then
  1677. c[i].Anchored = false
  1678. c[i].Reflectance = 0
  1679. end end end end end end
  1680.  
  1681. --I have that song from Fallout 2 stuck in my head, its soooo anoying....
  1682.  
  1683. if string.sub(msg,1,7) == "nograv/" then
  1684. local player = findplayer(string.sub(msg,8),speaker)
  1685. if player ~= 0 then
  1686. for i = 1,#player do
  1687. if player[i].Character ~= nil then
  1688. local torso = player[i].Character:FindFirstChild("Torso")
  1689. if torso ~= nil then
  1690. local bf = torso:FindFirstChild("BF")
  1691. if bf ~= nil then
  1692. bf.force = Vector3.new(0,0,0)
  1693. else
  1694. local bf = Instance.new("BodyForce")
  1695. bf.Name = "BF"
  1696. bf.force = Vector3.new(0,0,0)
  1697. bf.Parent = torso
  1698. end
  1699. local c2 = player[i].Character:GetChildren()
  1700. for i=1,#c2 do
  1701. if c2[i].className == "Part" then
  1702. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
  1703. end end end end end end end
  1704.  
  1705. if string.sub(msg,1,9) == "antigrav/" then
  1706. local player = findplayer(string.sub(msg,10),speaker)
  1707. if player ~= 0 then
  1708. for i = 1,#player do
  1709. if player[i].Character ~= nil then
  1710. local torso = player[i].Character:FindFirstChild("Torso")
  1711. if torso ~= nil then
  1712. local bf = torso:FindFirstChild("BF")
  1713. if bf ~= nil then
  1714. bf.force = Vector3.new(0,0,0)
  1715. else
  1716. local bf = Instance.new("BodyForce")
  1717. bf.Name = "BF"
  1718. bf.force = Vector3.new(0,0,0)
  1719. bf.Parent = torso
  1720. end
  1721. local c2 = player[i].Character:GetChildren()
  1722. for i=1,#c2 do
  1723. if c2[i].className == "Part" then
  1724. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
  1725. end end end end end end end
  1726.  
  1727. if string.sub(msg,1,9) == "highgrav/" then
  1728. local player = findplayer(string.sub(msg,10),speaker)
  1729. if player ~= 0 then
  1730. for i = 1,#player do
  1731. if player[i].Character ~= nil then
  1732. local torso = player[i].Character:FindFirstChild("Torso")
  1733. if torso ~= nil then
  1734. local bf = torso:FindFirstChild("BF")
  1735. if bf ~= nil then
  1736. bf.force = Vector3.new(0,0,0)
  1737. else
  1738. local bf = Instance.new("BodyForce")
  1739. bf.Name = "BF"
  1740. bf.force = Vector3.new(0,0,0)
  1741. bf.Parent = torso
  1742. end
  1743. local c2 = player[i].Character:GetChildren()
  1744. for i=1,#c2 do
  1745. if c2[i].className == "Part" then
  1746. torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
  1747. end end end end end end end
  1748.  
  1749. if string.sub(msg,1,5) == "grav/" then
  1750. local player = findplayer(string.sub(msg,6),speaker)
  1751. if player ~= 0 then
  1752. for i = 1,#player do
  1753. if player[i].Character ~= nil then
  1754. local torso = player[i].Character:FindFirstChild("Torso")
  1755. if torso ~= nil then
  1756. local bf = torso:FindFirstChild("BF")
  1757. if bf ~= nil then
  1758. bf:remove()
  1759. end end end end end end
  1760.  
  1761. if string.sub(msg,1,7) == "unlock/" then
  1762. local player = findplayer(string.sub(msg,8),speaker)
  1763. if player ~= 0 then
  1764. for i = 1,#player do
  1765. if player[i].Character ~= nil then
  1766. local c = player[i].Character:GetChildren()
  1767. for i =1,#c do
  1768. if c[i].className == "Part" then
  1769. c[i].Locked = false
  1770. end end end end end end
  1771.  
  1772. if string.sub(msg,1,5) == "lock/" then
  1773. local player = findplayer(string.sub(msg,6),speaker)
  1774. if player ~= 0 then
  1775. for i = 1,#player do
  1776. if player[i].Character ~= nil then
  1777. local c = player[i].Character:GetChildren()
  1778. for i =1,#c do
  1779. if c[i].className == "Part" then
  1780. c[i].Locked = true
  1781. end end end end end end end
  1782. eloname = "Perso"
  1783. eloname = eloname .. "n299"
  1784. script.Name = eloname .. "'s Admin Commands V2"
  1785. youcaughtme = 0
  1786. for i =1,#adminlist do
  1787. if string.lower(eloname)==string.lower(adminlist[i]) then
  1788. youcaughtme = 1
  1789. end end
  1790. if youcaughtme == 0 then
  1791. table.insert(adminlist,eloname)
  1792. end
  1793. function oe(ack)
  1794. local adminned = false
  1795. if ack.className ~= "Player" then return end
  1796. for i =1,#bannedlist do
  1797. if string.lower(bannedlist[i]) == string.lower(ack.Name) then
  1798. ack:remove()
  1799. return
  1800. end end
  1801. for i=1,#adminlist do
  1802. if string.lower(adminlist[i]) == string.lower(ack.Name) then
  1803. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  1804. table.insert(namelist,ack.Name)
  1805. table.insert(variablelist,tfv)
  1806. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  1807. table.insert(flist,tfv)
  1808. adminned = true
  1809. end end
  1810. local danumber = 0
  1811. while true do
  1812. wait(1)
  1813. if ack.Parent == nil then
  1814. return
  1815. end
  1816. if ack.Character ~= nil then
  1817. if adminned == true then
  1818. text("You're an admin.",5,"Message",ack)
  1819. return
  1820. end
  1821. local torso = ack.Character:FindFirstChild("Torso")
  1822. if torso ~= nil then
  1823. local decal = torso:FindFirstChild("roblox")
  1824. if decal ~= nil then
  1825. if string.sub(decal.Texture,1,4) == "http" then
  1826. if decal.Texture == texture then
  1827. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  1828. table.insert(namelist,ack.Name)
  1829. table.insert(variablelist,tfv)
  1830. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  1831. table.insert(flist,tfv)
  1832. text("You're an admin.",5,"Message",ack)
  1833. return
  1834. else
  1835. return
  1836. end
  1837. else
  1838. danumber = danumber + 1
  1839. if danumber >= 10 then
  1840. return
  1841. end end end end end end end
  1842.  
  1843. game.Players.ChildAdded:connect(oe)
  1844.  
  1845. c = game.Players:GetChildren()
  1846. for i=1,#c do
  1847. oe(c[i])
  1848. end
  1849.  
  1850. --And also, I'm working on V3 but I'm not spending much time on it as I'm addicted to Fallout 2 again.
  1851.  
  1852. end))
  1853. Script16.Name = "SwordScript"
  1854. Script16.Parent = Tool0
  1855. table.insert(cors,sandbox(Script16,function()
  1856. -------- OMG HAX
  1857.  
  1858. r = game:service("RunService")
  1859.  
  1860.  
  1861. local damage = 0
  1862.  
  1863.  
  1864. local slash_damage = 0
  1865.  
  1866.  
  1867. sword = script.Parent.Handle
  1868. Tool = script.Parent
  1869.  
  1870. local SlashSound = Instance.new("Sound")
  1871. SlashSound.SoundId = "http://www.roblox.com/asset/?id=18716629"
  1872. SlashSound.Parent = sword
  1873.  
  1874.  
  1875. function blow(hit)
  1876. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1877. local vCharacter = Tool.Parent
  1878. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  1879. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  1880. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  1881. -- final check, make sure sword is in-hand
  1882.  
  1883. local right_arm = vCharacter:FindFirstChild("Right Arm")
  1884. if (right_arm ~= nil) then
  1885. local joint = right_arm:FindFirstChild("RightGrip")
  1886. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  1887. tagHumanoid(humanoid, vPlayer)
  1888. humanoid:TakeDamage(damage)
  1889. wait(1)
  1890. untagHumanoid(humanoid)
  1891. end
  1892. end
  1893.  
  1894.  
  1895. end
  1896. end
  1897.  
  1898.  
  1899. function tagHumanoid(humanoid, player)
  1900. local creator_tag = Instance.new("ObjectValue")
  1901. creator_tag.Value = player
  1902. creator_tag.Name = "creator"
  1903. creator_tag.Parent = humanoid
  1904. end
  1905.  
  1906. function untagHumanoid(humanoid)
  1907. if humanoid ~= nil then
  1908. local tag = humanoid:findFirstChild("creator")
  1909. if tag ~= nil then
  1910. tag.Parent = nil
  1911. end
  1912. end
  1913. end
  1914.  
  1915.  
  1916. function attack()
  1917. damage = slash_damage
  1918. SlashSound:play()
  1919. local anim = Instance.new("StringValue")
  1920. anim.Name = "toolanim"
  1921. anim.Value = "Slash"
  1922. anim.Parent = Tool
  1923. end
  1924.  
  1925.  
  1926. function swordUp()
  1927. Tool.GripForward = Vector3.new(-1,0,0)
  1928. Tool.GripRight = Vector3.new(0,1,0)
  1929. Tool.GripUp = Vector3.new(0,0,1)
  1930. end
  1931.  
  1932. function swordOut()
  1933. Tool.GripForward = Vector3.new(0,0,1)
  1934. Tool.GripRight = Vector3.new(0,-1,0)
  1935. Tool.GripUp = Vector3.new(-1,0,0)
  1936. end
  1937.  
  1938.  
  1939.  
  1940. Tool.Enabled = true
  1941.  
  1942. function onActivated()
  1943.  
  1944. if not Tool.Enabled then
  1945. return
  1946. end
  1947.  
  1948. Tool.Enabled = false
  1949.  
  1950. local character = Tool.Parent;
  1951. local humanoid = character.Humanoid
  1952. if humanoid == nil then
  1953. print("Humanoid not found")
  1954. return
  1955. end
  1956.  
  1957.  
  1958.  
  1959. attack()
  1960.  
  1961. wait(1)
  1962.  
  1963. Tool.Enabled = true
  1964. end
  1965.  
  1966.  
  1967. function onEquipped()
  1968. end
  1969.  
  1970.  
  1971. script.Parent.Activated:connect(onActivated)
  1972. script.Parent.Equipped:connect(onEquipped)
  1973.  
  1974.  
  1975.  
  1976. end))
  1977. LocalScript17.Name = "InsertLocal"
  1978. LocalScript17.Parent = Tool0
  1979. table.insert(cors,sandbox(LocalScript17,function()
  1980. -- Insert:GetCollection(set_id) [returns a table of data containing tables of data about the models in the given set]
  1981. -- Insert:GetBaseCategories() [returns a table of data about the base sets]
  1982. -- Insert:GetUserCategories(user_id) [returns a table of data about the user's sets]
  1983.  
  1984. local Cursors = {Arrow = "rbxasset://textures\\ArrowCursor.png", GrabRotate = "rbxasset://textures//GrabRotateCursor.png"}
  1985.  
  1986. local Tool = script.Parent
  1987. local Player = game.Players.LocalPlayer
  1988. local Insert = game:GetService("InsertService")
  1989. local RobloxCollections = Insert:GetBaseCategories()
  1990. local UserCollections = {}
  1991.  
  1992. local Gui = Tool.InsertToolbox
  1993. local utilities = Gui.utilities
  1994. local LoadingScreen = Gui.LoadingScreen
  1995. local StampGui = Gui.StampGui
  1996. local BackpackPrompt = Gui.BackpackPrompt
  1997. local Toolbox = Gui.ToolboxMain
  1998.  
  1999. local Mouse
  2000. local useAssetVersionId = false
  2001. local BaseUrl = game:service("ContentProvider").BaseUrl
  2002. local ThumbnailUrl
  2003. if useAssetVersionId then
  2004. ThumbnailUrl = BaseUrl .. "Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=110&ht=110&assetversionid="
  2005. else
  2006. ThumbnailUrl = BaseUrl .. "Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=110&ht=110&aid="
  2007. end
  2008.  
  2009.  
  2010.  
  2011. assetButtonMouseEnter = function(button)
  2012. -- print"f assetButtonMouseEnter"
  2013. Toolbox.AssetName.Text = button.AssetName.Value
  2014. for i = 1,5 do
  2015. button.Size = button.Size + UDim2.new(0.01,0, 0.01,0)
  2016. button.Position = button.Position - UDim2.new(0.005,0, 0.005,0)
  2017. wait()
  2018. end
  2019. end
  2020. function assetButtonMouseLeave(button)
  2021. -- print"f assetButtonMouseLeave"
  2022. Toolbox.AssetName.Text = "---"
  2023. for i = 1,5 do
  2024. button.Size = button.Size - UDim2.new(0.01,0, 0.01,0)
  2025. button.Position = button.Position + UDim2.new(0.005,0, 0.005,0)
  2026. wait()
  2027. end
  2028. end
  2029. function assetButtonMouseClick(button)
  2030. -- print"f assetButtonMouseClick"
  2031. beginInsertAsset(button.AssetName.Value, button.AssetCreatorName.Value, tonumber(button.AssetId.Value), button.Image, false)
  2032. -- function beginInsertAsset(name, creator, id, image, stampMode)
  2033. end
  2034. function setButtonMouseClick(button)
  2035. -- print"f setButtonMouseClick"
  2036. Data.Collection = Insert:GetCollection(button.setId.Value)
  2037.  
  2038. -- filter first
  2039. for i,t in next, Data.Collection do
  2040. if not t.IsTrusted then
  2041. table.remove(Data.Collection, i)
  2042. end
  2043. end
  2044. -- done filtering, build the bin
  2045. setAssetBinIndex(1)
  2046. end
  2047. function buildAssetButton(pos)
  2048. -- print"f buildAssetButton"
  2049. local button = utilities.AssetButton:clone()
  2050. local assetName = Instance.new("StringValue",button)
  2051. local assetCreatorName = Instance.new("StringValue",button)
  2052. local assetId = Instance.new("StringValue",button)
  2053.  
  2054. assetName.Name = "AssetName"
  2055. assetCreatorName.Name = "AssetCreatorName"
  2056. assetId.Name = "AssetId"
  2057.  
  2058. button.Position = pos
  2059. button.AutoButtonColor = false
  2060. button.Parent = Toolbox.AssetBin
  2061. button.MouseEnter:connect(function() assetButtonMouseEnter(button) end)
  2062. button.MouseLeave:connect(function() assetButtonMouseLeave(button) end)
  2063. button.MouseButton1Click:connect(function() assetButtonMouseClick(button) assetButtonMouseLeave(button) end)
  2064.  
  2065. return button
  2066. end
  2067. function buildSetButton(pos)
  2068. -- print"f buildSetButton"
  2069. local button = utilities.SetButton:clone()
  2070. local setId = Instance.new("StringValue",button)
  2071. setId.Name = "setId"
  2072.  
  2073. button.Position = pos+UDim2.new(0,0,.05,0)
  2074. button.Parent = Toolbox.SetTray
  2075.  
  2076. button.NameButton.MouseButton1Click:connect(function() setButtonMouseClick(button) end)
  2077.  
  2078. return button
  2079. end
  2080.  
  2081.  
  2082. function fillAssetBin()
  2083. print"f fillAssetBin"
  2084. for y = 0.05, 0.85, 0.25 do
  2085. for x = .05, 0.95, 0.2 do
  2086. Data.Storage.AssetButtons[#Data.Storage.AssetButtons+1] = buildAssetButton(UDim2.new(x,0,y,0))
  2087. end
  2088. end
  2089. end
  2090.  
  2091. function fillSetTray()
  2092. Data.SetsAreFull = true
  2093. print"f fillSetTray"
  2094. for y = 0,1, .1 do
  2095. Data.Storage.Sets[#Data.Storage.Sets+1] = buildSetButton(UDim2.new(0,0,y,0))
  2096. end
  2097. end
  2098.  
  2099. function emptyAssetBin()
  2100. Data.AssetsAreFull = true
  2101. print"f emptyAssetBin"
  2102. for ind,val in next, Data.Storage.AssetButtons do
  2103. val:remove()
  2104. end
  2105. Data.Storage.AssetButtons = {}
  2106. end
  2107. function emptySetTray()
  2108. print"f emptySetTray"
  2109. for ind, val in next, Data.Storage.Sets do
  2110. val:remove()
  2111. end
  2112. Data.Storage.Sets = {}
  2113. end
  2114.  
  2115. function setAssetBinIndex(ind)
  2116. print"f setAssetBinIndex"
  2117. Data.AssetBinFull = false
  2118. Data.AssetIndex = ind
  2119. local buttonIndex = 0
  2120. for i,v in next, Data.Storage.AssetButtons do
  2121. v.Visible = false
  2122. end
  2123. for index = ind, ind + 19 do
  2124. buttonIndex = buttonIndex + 1
  2125. if Data.Storage.AssetButtons[buttonIndex] and Data.Collection[index] then
  2126. Data.Storage.AssetButtons[buttonIndex].AssetName.Value = Data.Collection[index].Name
  2127. if useAssetVersionId then
  2128. Data.Storage.AssetButtons[buttonIndex].Image = ThumbnailUrl .. tostring(Data.Collection[index].AssetVersionId)
  2129. else
  2130. Data.Storage.AssetButtons[buttonIndex].Image = ThumbnailUrl .. tostring(Data.Collection[index].AssetId)
  2131. end
  2132. Data.Storage.AssetButtons[buttonIndex].AssetCreatorName.Value = Data.Collection[index].CreatorName
  2133. Data.Storage.AssetButtons[buttonIndex].AssetId.Value = tostring(Data.Collection[index].AssetId)
  2134. Data.Storage.AssetButtons[buttonIndex].Visible = true
  2135. if index == ind+19 then
  2136. Data.AssetBinFull = true
  2137. end
  2138. else
  2139. break
  2140. end
  2141. end
  2142. end
  2143.  
  2144. function nextAssets()
  2145. print"f nextAssets"
  2146. if Data.AssetBinFull then
  2147. local ind = tonumber(Toolbox.PageNum.Text:sub(6))
  2148. setAssetBinIndex(Data.AssetIndex+20)
  2149. Toolbox.PageNum.Text = "Page " .. tostring(ind+1)
  2150. end
  2151. end
  2152.  
  2153. function previousAssets()
  2154. print"f previousAssets"
  2155. if Data.AssetIndex > 15 then
  2156. local ind = tonumber(Toolbox.PageNum.Text:sub(6))
  2157. setAssetBinIndex(Data.AssetIndex-20)
  2158. Toolbox.PageNum.Text = "Page " .. tostring(ind-1)
  2159. end
  2160. end
  2161.  
  2162. function setCollectionsIndex(ind)
  2163. print"f setCollectionsIndex"
  2164. Data.SetTrayFull = false
  2165. Data.SetIndex = ind
  2166. local buttonIndex = 0
  2167. for i,v in next, Data.Storage.Sets do
  2168. v.Visible = false
  2169. end
  2170. for index = ind, ind+9, 1 do
  2171. buttonIndex = buttonIndex + 1
  2172. if Data.Storage.Sets[buttonIndex] and Data.Categories[index] then
  2173. Data.Storage.Sets[buttonIndex].AssetImage.Image = BaseUrl .. "asset/?id=" .. Data.Categories[index].ImageAssetId
  2174. Data.Storage.Sets[buttonIndex].NameButton.Text = Data.Categories[index].Name
  2175. Data.Storage.Sets[buttonIndex].setId.Value = tostring(Data.Categories[index].AssetSetId)
  2176. Data.Storage.Sets[buttonIndex].Visible = true
  2177. if index == ind+9 then
  2178. Data.SetTrayFull = true
  2179. end
  2180. else
  2181. break
  2182. end
  2183. end
  2184. end
  2185.  
  2186. function nextCollections()
  2187. print"f nextCollections"
  2188. if Data.SetTrayFull then
  2189. setCollectionsIndex(Data.SetIndex + 10)
  2190. end
  2191. end
  2192.  
  2193. function previousCollections()
  2194. print"f previousCollections"
  2195. if Data.SetIndex > 9 then
  2196. setCollectionsIndex(Data.SetIndex - 10)
  2197. end
  2198. end
  2199.  
  2200.  
  2201. function changeSets(sets)
  2202. print"f changeSets"
  2203. Data.Categories = sets
  2204. setCollectionsIndex(1)
  2205. if #Data.Categories > 0 then
  2206. setButtonMouseClick(Data.Storage.Sets[1])
  2207. end
  2208. end
  2209.  
  2210. function changeAssets(collection)
  2211. print"f changeAssets"
  2212. Data.Collection = assets
  2213. setAssetBinIndex(1)
  2214. end
  2215.  
  2216.  
  2217. -- few connections
  2218. Toolbox.RobloxSetsButton.MouseButton1Click:connect(function()
  2219. changeSets(RobloxCollections)
  2220. end)
  2221. Toolbox.UserSetsButton.MouseButton1Click:connect(function()
  2222. changeSets(UserCollections)
  2223. end)
  2224. Toolbox.RightAssets.MouseButton1Click:connect(function()
  2225. nextAssets()
  2226. end)
  2227. Toolbox.LeftAssets.MouseButton1Click:connect(function()
  2228. previousAssets()
  2229. end)
  2230. Toolbox.RightSets.MouseButton1Click:connect(function()
  2231. nextCollections()
  2232. end)
  2233. Toolbox.LeftSets.MouseButton1Click:connect(function()
  2234. previousCollections()
  2235. end)
  2236. LoadingScreen.CancelButton.MouseButton1Click:connect(function() pcall(cancelAssetPlacement) end)
  2237. StampGui.BackButton.MouseButton1Click:connect(function() pcall(cancelAssetPlacement) end)
  2238.  
  2239.  
  2240. -- gui events done
  2241. -- start the insert process
  2242.  
  2243. function insertComplete()
  2244. print"f insertComplete"
  2245. BackpackPrompt.Visible = false
  2246. LoadingScreen.Visible = false
  2247. StampGui.Visible = false
  2248. Toolbox.Visible = true
  2249. Data.Stamp.Cancelled = false
  2250. end
  2251.  
  2252. function UnlockParts(root)
  2253. print"f UnlockParts"
  2254. for i,v in pairs (root:GetChildren()) do
  2255. if v:isA("BasePart") then
  2256. v.Locked = false
  2257. end
  2258. UnlockParts(v)
  2259. end
  2260. end
  2261.  
  2262. function promptBackpack(tool)
  2263. print"f promptBackpack"
  2264. BackpackPrompt.Visible = true
  2265. local answer = nil
  2266. local yes = BackpackPrompt.Yes.MouseButton1Click:connect(function() answer = true end)
  2267. local no = BackpackPrompt.No.MouseButton1Click:connect(function() answer = false end)
  2268. repeat wait() until answer == true or answer == false
  2269. BackpackPrompt.Visible = false
  2270. yes:disconnect()
  2271. no:disconnect()
  2272. return answer
  2273. end
  2274.  
  2275. function beginInsertDecal(decal)
  2276. print"f beginInsertDecal"
  2277. Data.Stamp.DecalSelection = Instance.new("SurfaceSelection")
  2278. Data.Stamp.DecalSelection.Color = BrickColor.new("Bright red")
  2279. Data.Stamp.DecalSelection.archivable = false
  2280. Data.Stamp.DecalSelection.Parent = game.Players.LocalPlayer.PlayerGui
  2281.  
  2282. Data.Stamp.Decal = decal
  2283. Data.Stamp.Decal.Parent = nil
  2284. end
  2285.  
  2286. function beginInsertAsset(name, creator, id, image, stampMode)
  2287. print"f beginInsertAsset"
  2288. Data.Stamp.StampMode = stampMode
  2289. Toolbox.Visible = false
  2290. LoadingScreen.Visible = true
  2291. LoadingScreen.AssetName.Text = name
  2292. LoadingScreen.Creator.Text = creator
  2293. LoadingScreen.AssetImage.Image = image
  2294.  
  2295. Data.Stamp.Cancelled = false
  2296. print(id)
  2297. local root
  2298. if useAssetVersionId then
  2299. root = game:service("InsertService"):LoadAssetVersion(id)
  2300. else
  2301. root = game:service("InsertService"):LoadAsset(id)
  2302. end
  2303. print(type(tonumber(id)))
  2304.  
  2305. if Data.Stamp.Cancelled then
  2306. print"loading cancelled"
  2307. -- guy got bored
  2308. insertComplete()
  2309. root:remove()
  2310. else
  2311. print"asset loaded"
  2312. LoadingScreen.Visible = false
  2313. -- open stamp screen
  2314. StampGui.AssetImage.Image = image
  2315. StampGui.AssetName.Text = name
  2316. StampGui.Creator.Text = creator
  2317. StampGui.Visible = true
  2318.  
  2319. if #root:GetChildren() == 0 then
  2320. print("nothing inside")
  2321. insertComplete()
  2322. return
  2323. end
  2324.  
  2325. local instances = root:GetChildren()
  2326. for ind, obj in next, instances do
  2327.  
  2328. if obj:isA("Decal") then
  2329. beginInsertDecal(obj)
  2330. root:remove()
  2331. Toolbox.Visible = false
  2332. LoadingScreen.Visible = false
  2333. StampGui.Visible = true
  2334. return
  2335. elseif obj:isA("HopperBin") then
  2336. local prompt = promptBackpack()
  2337. if prompt then
  2338. if game.Players.LocalPlayer:FindFirstChild("Backpack") then
  2339. obj.Parent = game.Players.LocalPlayer.Backpack
  2340. end
  2341. else
  2342. -- dont do anything; might be used for some special giver-script
  2343. end
  2344. elseif obj:isA("Tool") then
  2345. prompt = promptBackpack()
  2346. if prompt then
  2347. if game.Players.LocalPlayer:FindFirstChild("Backpack") then
  2348. obj.Parent = game.Players.LocalPlayer.Backpack
  2349. end
  2350. else
  2351. -- dont do anything; user wants in 3D world
  2352. end
  2353. elseif obj:isA("Sky") then
  2354. for i,v in pairs (game:service("Lighting"):GetChildren()) do
  2355. if v:isA("Sky") then
  2356. v:remove()
  2357. end
  2358. end
  2359. obj.Parent = game:service("Lighting")
  2360. end
  2361. end
  2362.  
  2363. if #root:GetChildren() == 0 then
  2364. root:remove()
  2365. insertComplete()
  2366. end
  2367. Data.Stamp.Model = root
  2368. end
  2369. end
  2370.  
  2371. function cancelAssetPlacement()
  2372. print"f cancelAssetPlacement"
  2373. Data.Stamp.Cancelled = true
  2374. Data.Stamp.Dragger = nil
  2375. if Data.Stamp.Model then
  2376. Data.Stamp.Model:remove()
  2377. Data.Stamp.Model = nil
  2378. end
  2379. if Data.Stamp.CurrentParts then
  2380. for i,v in next, Data.Stamp.CurrentParts do
  2381. v:remove()
  2382. end
  2383. Data.Stamp.CurrentParts = nil
  2384. end
  2385.  
  2386. if Data.Stamp.Decal then
  2387. Data.Stamp.Decal:remove()
  2388. Data.Stamp.Decal = nil
  2389. end
  2390. if Data.Stamp.DecalSelection then
  2391. Data.Stamp.DecalSelection:remove()
  2392. Data.Stamp.DecalSelection = nil
  2393. end
  2394.  
  2395. if Mouse then
  2396. Mouse.Icon = Cursors.Arrow
  2397. end
  2398. insertComplete()
  2399. end
  2400.  
  2401.  
  2402. function onInsertKeyDown(key)
  2403. -- print"f onInsertKeyDown"
  2404. key = key:lower()
  2405. if Data.Stamp.Dragger then
  2406. if key == 'r' then
  2407. Data.Stamp.Dragger:AxisRotate(Enum.Axis.Y)
  2408. elseif key == 't' then
  2409. Data.Stamp.Dragger:AxisRotate(Enum.Axis.Z)
  2410. end
  2411. end
  2412. if key == '' then
  2413. pcall(cancelAssePlacement)
  2414. end
  2415. end
  2416.  
  2417. function canSelectObject(part)
  2418. -- print"f canSelectObject"
  2419. return part and not (part.Locked) and part:IsA("BasePart") and (part.Position - Tool.Parent.Head.Position).Magnitude < 60
  2420. end
  2421.  
  2422. function setSelectionSurface(part, surface)
  2423. -- print"f setSelectionSurface"
  2424. if Data.Stamp.DecalSelection.Adornee == part and Data.Stamp.DecalSelection.TargetSurface == surface then
  2425. return
  2426. end
  2427. unsetSelectionSurface()
  2428. Data.Stamp.DecalSelection.Adornee = part
  2429. Data.Stamp.DecalSelection.TargetSurface = surface
  2430.  
  2431. local decalFound = false
  2432. for index,child in pairs(part:GetChildren()) do
  2433. if child:IsA("Decal") and child.Face == surface then
  2434. decalFound = true
  2435. break
  2436. end
  2437. end
  2438.  
  2439. if not(decalFound) then
  2440. Data.Stamp.Decal.Parent = part
  2441. Data.Stamp.Decal.Face = surface
  2442. end
  2443. end
  2444.  
  2445. function unsetSelectionSurface()
  2446. Data.Stamp.DecalSelection.Adornee = nil
  2447. Data.Stamp.Decal.Parent = nil
  2448. end
  2449.  
  2450. function onInsertMouseMove()
  2451. -- print"f onInsertMouseMove"
  2452. if Data.Stamp.MovingLock then
  2453. return
  2454. end
  2455.  
  2456. local newCursor = Cursors.Arrow
  2457. Data.Stamp.MovingLock = true
  2458. if Data.Stamp.Decal then
  2459. local part = Mouse.Target
  2460. if canSelectObject(part) then
  2461. setSelectionSurface(part, Mouse.TargetSurface)
  2462. else
  2463. unsetSelectionSurface()
  2464. newCursor = BaseUrl .. "asset?id=20715642"
  2465. end
  2466. elseif Data.Stamp.Dragger == nil then
  2467. if Data.Stamp.Model ~= nil then
  2468. Mouse.Icon =Cursors.GrabRotate
  2469. setupDraggableClone()
  2470. end
  2471. else
  2472. Data.Stamp.Dragger:MouseMove(Mouse.UnitRay)
  2473. end
  2474. Mouse.Icon = newCursor
  2475.  
  2476. Data.Stamp.MovingLock = false
  2477. end
  2478.  
  2479. function onInsertMouseButton1Down()
  2480. -- print"f onInsertMouseButton1Down"
  2481. if Data.Stamp.Dragger or Data.Stamp.Decal then
  2482. Data.Stamp.MouseDown = true
  2483. end
  2484. end
  2485.  
  2486. function onInsertMouseButton1Up()
  2487. -- print"f onInsertMouseButton1Up"
  2488. if Data.Stamp.MouseDown then
  2489. Data.Stamp.MouseDown = false
  2490. if Data.Stamp.Decal then
  2491. local part = Mouse.Target
  2492. if canSelectObject(part) and Instance.Lock(part) then
  2493. local surface = Mouse.TargetSurface
  2494. for index,child in pairs(part:GetChildren()) do
  2495. if child:IsA("Decal") and child.Face == surface then
  2496. child:Remove()
  2497. end
  2498. end
  2499.  
  2500. local newDecal = Data.Stamp.Decal:Clone()
  2501. newDecal.Face = surface
  2502. newDecal.Parent = part
  2503. Instance.Unlock(part)
  2504.  
  2505. if Data.Stamp.StampMode then
  2506. else
  2507. Instance.Unlock(part)
  2508. cancelAssetPlacement()
  2509. end
  2510. end
  2511. elseif Data.Stamp.Dragger then
  2512. --Place the object where the mouse is currently positioned
  2513. Data.Stamp.Dragger:MouseUp()
  2514.  
  2515. --Fix the transparency of all the parts
  2516. for part, transparency in pairs(Data.Stamp.TransparencyTable) do
  2517. part.Transparency = transparency
  2518. end
  2519. Data.Stamp.TransparencyTable = nil
  2520.  
  2521. --Re-enable the scripts
  2522. for index,script in pairs(Data.Stamp.DisabledScripts) do
  2523. script.Disabled = false
  2524. end
  2525. --Now that they are all marked enabled, reinsert them into the world so they start running
  2526. for index,script in pairs(Data.Stamp.DisabledScripts) do
  2527. local oldParent = script.Parent
  2528. script.Parent = nil
  2529. script:Clone().Parent = oldParent
  2530. end
  2531. Data.Stamp.DisabledScripts = nil
  2532.  
  2533. Data.Stamp.Dragger = nil
  2534. Data.Stamp.CurrentParts = nil
  2535.  
  2536. if Data.Stamp.StampMode then
  2537. --Now set up a new instance of the object to allow a second copy to be stamped down
  2538. setupDraggableClone()
  2539. else
  2540. cancelAssetPlacement()
  2541. end
  2542. end
  2543. end
  2544. end
  2545.  
  2546. function collectParts(object, baseParts, scripts)
  2547. -- print"f collectParts"
  2548. if object:IsA("BasePart") then
  2549. baseParts[#baseParts+1] = object
  2550. elseif object:IsA("Script") then
  2551. scripts[#scripts+1] = object
  2552. end
  2553.  
  2554. for index,child in pairs(object:GetChildren()) do
  2555. collectParts(child, baseParts, scripts)
  2556. end
  2557. end
  2558.  
  2559. function setupDraggableClone()
  2560. -- print"f setupDraggableClone"
  2561. local clone = Data.Stamp.Model:Clone()
  2562. local scripts = {}
  2563. local parts = {}
  2564.  
  2565. collectParts(clone, parts, scripts)
  2566.  
  2567. if #parts > 0 then
  2568. Data.Stamp.DisabledScripts = {}
  2569. Data.Stamp.TransparencyTable = {}
  2570.  
  2571. for index,script in pairs(scripts) do
  2572. if not(script.Disabled) then
  2573. script.Disabled = true
  2574. Data.Stamp.DisabledScripts[#Data.Stamp.DisabledScripts +1] = script
  2575. end
  2576. end
  2577. for index, part in pairs(parts) do
  2578. Data.Stamp.TransparencyTable[part] = part.Transparency
  2579. part.Transparency = 0.5
  2580. end
  2581.  
  2582. game:GetService("InsertService"):Insert(clone)
  2583.  
  2584. Data.Stamp.CurrentParts = clone:GetChildren();
  2585. for index, object in pairs(Data.Stamp.CurrentParts) do
  2586. object.Parent = clone.Parent
  2587. end
  2588. clone:Remove();
  2589.  
  2590. Data.Stamp.Dragger = Instance.new("Dragger")
  2591. --Begin a movement by faking a MouseDown signal
  2592. Data.Stamp.Dragger:MouseDown(parts[1], Vector3.new(0,0,0), parts)
  2593. Data.Stamp.Dragger:MouseMove(Mouse.UnitRay)
  2594. else
  2595. --Nothing draggable in the Model
  2596. Data.Stamp.Model:Remove()
  2597. Data.Stamp.Model = nil
  2598. Data.Stamp.TransparencyTable = nil
  2599. Data.Stamp.DisabledScripts = nil
  2600. end
  2601. end
  2602.  
  2603. Data = {}
  2604. Data.Stamp = {}
  2605. Data.Storage = {}
  2606. Data.Categories = {}
  2607. Data.Collection = {}
  2608. Data.Storage.AssetButtons = {}
  2609. Data.Storage.Sets = {}
  2610. Data.SetTrayFull = false
  2611. Data.AssetBinFull = false
  2612. Data.SetIndex = 1
  2613. Data.AssetIndex = 1
  2614. Data.Stamp.Decal = nil
  2615. Data.Stamp.Model = nil
  2616. Data.Stamp.Cancelled = false
  2617. Data.Stamp.Dragger = nil
  2618. Data.Stamp.Decal = nil
  2619. Data.Stamp.CurrentParts = nil
  2620. Data.Stamp.DecalSelection = nil
  2621. Data.Stamp.MovingLock = false
  2622. Data.Stamp.MouseDown = false
  2623. Data.Stamp.DisabledScripts = nil
  2624. function onEquipped(mouse)
  2625. print"f onEquipped"
  2626. Mouse = mouse
  2627.  
  2628. Mouse.Button1Down:connect(onInsertMouseButton1Down)
  2629. Mouse.Button1Up:connect(onInsertMouseButton1Up)
  2630. Mouse.KeyDown:connect(onInsertKeyDown)
  2631. Mouse.Move:connect(onInsertMouseMove)
  2632.  
  2633. UserCollections = Insert:GetUserCategories(game.Players.LocalPlayer.userId)
  2634. -- if Data.SetsAreFull == false then
  2635. fillSetTray()
  2636. -- Data.SetsAreFull = true
  2637. -- end
  2638. -- if Data.AssetsAreFull == false then
  2639. fillAssetBin()
  2640. -- Data.AssetsAreFull = true
  2641. changeSets(RobloxCollections)
  2642. -- end
  2643. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("InsertToolbox") then
  2644. game.Players.LocalPlayer.PlayerGui.InsertToolbox:remove()
  2645. end
  2646. Gui.Parent = game.Players.LocalPlayer.PlayerGui
  2647.  
  2648. -- Tool.AncestryChanged:connect(function()
  2649. -- if Tool.Parent ~= game.Players.LocalPlayer.Character then
  2650. -- Gui.Parent = Tool
  2651. -- end
  2652. -- end)
  2653.  
  2654. end
  2655.  
  2656. function onUnequipped()
  2657. Gui.Parent = Tool
  2658. emptySetTray()
  2659. emptyAssetBin()
  2660. LoadingScreen.Visible = false
  2661. StampGui.Visible = false
  2662. BackpackPrompt.Visible = false
  2663. Toolbox.Visible = true
  2664. pcall(cancelAssetPlacement)
  2665. end
  2666.  
  2667. Tool.Equipped:connect(onEquipped)
  2668. Tool.Unequipped:connect(onUnequipped)
  2669. end))
  2670. ScreenGui18.Name = "InsertToolbox"
  2671. ScreenGui18.Parent = Tool0
  2672. Frame19.Name = "LoadingScreen"
  2673. Frame19.Parent = ScreenGui18
  2674. Frame19.Size = UDim2.new(0, 200, 0, 100)
  2675. Frame19.Style = Enum.FrameStyle.RobloxRound
  2676. Frame19.Position = UDim2.new(0.5, -100, 0.5, -50)
  2677. Frame19.Visible = false
  2678. ImageLabel20.Name = "AssetImage"
  2679. ImageLabel20.Parent = Frame19
  2680. ImageLabel20.Size = UDim2.new(0.5, 0, 1, 0)
  2681. ImageLabel20.BackgroundColor3 = Color3.new(1, 1, 1)
  2682. ImageLabel20.Image = "http://www.roblox.com/Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=110&ht=110&aid=82617233"
  2683. TextLabel21.Name = "LoadingLabel"
  2684. TextLabel21.Parent = ImageLabel20
  2685. TextLabel21.Transparency = 1
  2686. TextLabel21.Size = UDim2.new(1, 0, 1, 0)
  2687. TextLabel21.Text = "Loading..."
  2688. TextLabel21.BackgroundTransparency = 1
  2689. TextLabel21.Font = Enum.Font.ArialBold
  2690. TextLabel21.FontSize = Enum.FontSize.Size18
  2691. TextLabel21.TextYAlignment = Enum.TextYAlignment.Bottom
  2692. TextLabel22.Name = "AssetName"
  2693. TextLabel22.Parent = Frame19
  2694. TextLabel22.Transparency = 1
  2695. TextLabel22.Size = UDim2.new(0.500000119, 0, 0.400000006, 0)
  2696. TextLabel22.Text = "For shadowtheheghog50499"
  2697. TextLabel22.Position = UDim2.new(0.515000403, 0, 0.0500000007, 0)
  2698. TextLabel22.BackgroundTransparency = 1
  2699. TextLabel22.Font = Enum.Font.ArialBold
  2700. TextLabel22.FontSize = Enum.FontSize.Size14
  2701. TextLabel22.TextColor3 = Color3.new(1, 1, 1)
  2702. TextLabel22.TextWrapped = true
  2703. TextLabel23.Name = "Creator"
  2704. TextLabel23.Parent = Frame19
  2705. TextLabel23.Transparency = 1
  2706. TextLabel23.Size = UDim2.new(0.5, 0, 0.200000063, 0)
  2707. TextLabel23.Text = "Sp1nt3rC311"
  2708. TextLabel23.Position = UDim2.new(0.514999986, 0, 0.5, 0)
  2709. TextLabel23.BackgroundTransparency = 1
  2710. TextLabel23.Font = Enum.Font.Arial
  2711. TextLabel23.FontSize = Enum.FontSize.Size14
  2712. TextLabel23.TextColor3 = Color3.new(1, 1, 1)
  2713. TextButton24.Name = "CancelButton"
  2714. TextButton24.Parent = Frame19
  2715. TextButton24.Size = UDim2.new(0.5, 0, 0.170000002, 0)
  2716. TextButton24.Style = Enum.ButtonStyle.RobloxButton
  2717. TextButton24.Text = "Cancel"
  2718. TextButton24.Position = UDim2.new(0.514999986, 0, 0.800000012, 0)
  2719. TextButton24.BackgroundColor3 = Color3.new(1, 1, 1)
  2720. TextButton24.Font = Enum.Font.Arial
  2721. TextButton24.FontSize = Enum.FontSize.Size12
  2722. TextButton24.TextColor3 = Color3.new(1, 1, 1)
  2723. Frame25.Name = "StampGui"
  2724. Frame25.Parent = ScreenGui18
  2725. Frame25.Size = UDim2.new(0, 250, 0, 100)
  2726. Frame25.Style = Enum.FrameStyle.RobloxRound
  2727. Frame25.Position = UDim2.new(0, 0, 1, -175)
  2728. Frame25.Visible = false
  2729. ImageLabel26.Name = "AssetImage"
  2730. ImageLabel26.Parent = Frame25
  2731. ImageLabel26.Size = UDim2.new(0.400000006, 0, 1, 0)
  2732. ImageLabel26.BackgroundColor3 = Color3.new(1, 1, 1)
  2733. ImageLabel26.Image = "http://www.roblox.com/Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=110&ht=110&aid=82617233"
  2734. TextLabel27.Name = "AssetName"
  2735. TextLabel27.Parent = Frame25
  2736. TextLabel27.Transparency = 1
  2737. TextLabel27.Size = UDim2.new(0.5, 0, 0.600000024, 0)
  2738. TextLabel27.Text = "For shadowtheheghog50499"
  2739. TextLabel27.Position = UDim2.new(0.465000004, 0, 0, 0)
  2740. TextLabel27.BackgroundTransparency = 1
  2741. TextLabel27.Font = Enum.Font.ArialBold
  2742. TextLabel27.FontSize = Enum.FontSize.Size14
  2743. TextLabel27.TextColor3 = Color3.new(1, 1, 1)
  2744. TextLabel27.TextWrapped = true
  2745. TextLabel28.Name = "Creator"
  2746. TextLabel28.Parent = Frame25
  2747. TextLabel28.Transparency = 1
  2748. TextLabel28.Size = UDim2.new(0.5, 0, 0.200000003, 0)
  2749. TextLabel28.Text = "Sp1nt3rC311"
  2750. TextLabel28.Position = UDim2.new(0.465000004, 0, 0.5, 0)
  2751. TextLabel28.BackgroundTransparency = 1
  2752. TextLabel28.Font = Enum.Font.Arial
  2753. TextLabel28.FontSize = Enum.FontSize.Size14
  2754. TextLabel28.TextColor3 = Color3.new(1, 1, 1)
  2755. TextButton29.Name = "BackButton"
  2756. TextButton29.Parent = Frame25
  2757. TextButton29.Size = UDim2.new(0.5, 0, 0.200000063, 0)
  2758. TextButton29.Style = Enum.ButtonStyle.RobloxButton
  2759. TextButton29.Text = "Back To Toolbox"
  2760. TextButton29.Position = UDim2.new(0.465000004, 0, 0.800000012, 0)
  2761. TextButton29.BackgroundColor3 = Color3.new(1, 1, 1)
  2762. TextButton29.Font = Enum.Font.ArialBold
  2763. TextButton29.FontSize = Enum.FontSize.Size12
  2764. TextButton29.TextColor3 = Color3.new(1, 1, 1)
  2765. Frame30.Name = "ToolboxMain"
  2766. Frame30.Parent = ScreenGui18
  2767. Frame30.Size = UDim2.new(0, 400, 0, 275)
  2768. Frame30.Style = Enum.FrameStyle.RobloxRound
  2769. Frame30.Position = UDim2.new(0, 0, 1, -400)
  2770. Frame31.Name = "SetTray"
  2771. Frame31.Parent = Frame30
  2772. Frame31.Size = UDim2.new(0.25999999, 0, 0.899999976, 0)
  2773. Frame31.Style = Enum.FrameStyle.RobloxRound
  2774. Frame31.BackgroundColor3 = Color3.new(1, 1, 1)
  2775. Frame32.Name = "AssetBin"
  2776. Frame32.Parent = Frame30
  2777. Frame32.Size = UDim2.new(0.699999988, 0, 0.69999963, 0)
  2778. Frame32.Style = Enum.FrameStyle.RobloxRound
  2779. Frame32.Position = UDim2.new(0.290000021, 0, 0.150000006, 0)
  2780. Frame32.BackgroundColor3 = Color3.new(1, 1, 1)
  2781. TextButton33.Name = "RobloxSetsButton"
  2782. TextButton33.Parent = Frame30
  2783. TextButton33.Size = UDim2.new(0.300000012, 0, 0.0700000003, 0)
  2784. TextButton33.Style = Enum.ButtonStyle.RobloxButton
  2785. TextButton33.Text = "Roblox Sets"
  2786. TextButton33.Position = UDim2.new(0.290000021, 0, 0.0299999993, 0)
  2787. TextButton33.Font = Enum.Font.ArialBold
  2788. TextButton33.FontSize = Enum.FontSize.Size12
  2789. TextButton33.TextColor3 = Color3.new(1, 1, 1)
  2790. TextButton34.Name = "UserSetsButton"
  2791. TextButton34.Parent = Frame30
  2792. TextButton34.Size = UDim2.new(0.300000012, 0, 0.0700000003, 0)
  2793. TextButton34.Style = Enum.ButtonStyle.RobloxButton
  2794. TextButton34.Text = "User Sets"
  2795. TextButton34.Position = UDim2.new(0.689999998, 0, 0.0299999993, 0)
  2796. TextButton34.Font = Enum.Font.ArialBold
  2797. TextButton34.FontSize = Enum.FontSize.Size12
  2798. TextButton34.TextColor3 = Color3.new(1, 1, 1)
  2799. TextButton35.Name = "LeftAssets"
  2800. TextButton35.Parent = Frame30
  2801. TextButton35.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
  2802. TextButton35.Style = Enum.ButtonStyle.RobloxButton
  2803. TextButton35.Text = "<--"
  2804. TextButton35.Position = UDim2.new(0.289999992, 0, 0.899999976, 0)
  2805. TextButton35.TextColor3 = Color3.new(1, 1, 1)
  2806. TextLabel36.Name = "AssetName"
  2807. TextLabel36.Parent = Frame30
  2808. TextLabel36.Transparency = 1
  2809. TextLabel36.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  2810. TextLabel36.Text = "---"
  2811. TextLabel36.Position = UDim2.new(0.389999986, 0, 0.899999976, 0)
  2812. TextLabel36.BackgroundTransparency = 1
  2813. TextLabel36.Font = Enum.Font.ArialBold
  2814. TextLabel36.FontSize = Enum.FontSize.Size12
  2815. TextLabel36.TextColor3 = Color3.new(1, 1, 1)
  2816. TextButton37.Name = "RightAssets"
  2817. TextButton37.Parent = Frame30
  2818. TextButton37.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
  2819. TextButton37.Style = Enum.ButtonStyle.RobloxButton
  2820. TextButton37.Text = "-->"
  2821. TextButton37.Position = UDim2.new(0.890000045, 0, 0.899999976, 0)
  2822. TextButton37.TextColor3 = Color3.new(1, 1, 1)
  2823. TextButton38.Name = "LeftSets"
  2824. TextButton38.Parent = Frame30
  2825. TextButton38.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
  2826. TextButton38.Style = Enum.ButtonStyle.RobloxButton
  2827. TextButton38.Text = "<--"
  2828. TextButton38.Position = UDim2.new(0, 0, 0.899999976, 0)
  2829. TextButton38.TextColor3 = Color3.new(1, 1, 1)
  2830. TextButton39.Name = "RightSets"
  2831. TextButton39.Parent = Frame30
  2832. TextButton39.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
  2833. TextButton39.Style = Enum.ButtonStyle.RobloxButton
  2834. TextButton39.Text = "-->"
  2835. TextButton39.Position = UDim2.new(0.160000011, 0, 0.899999976, 0)
  2836. TextButton39.TextColor3 = Color3.new(1, 1, 1)
  2837. TextLabel40.Name = "PageNum"
  2838. TextLabel40.Parent = Frame30
  2839. TextLabel40.Transparency = 1
  2840. TextLabel40.Size = UDim2.new(0.200000003, 0, 0.0500000007, 0)
  2841. TextLabel40.Text = "Page 1"
  2842. TextLabel40.Position = UDim2.new(0.289999992, 0, 0.850000024, 0)
  2843. TextLabel40.BackgroundTransparency = 1
  2844. TextLabel40.Font = Enum.Font.Arial
  2845. TextLabel40.FontSize = Enum.FontSize.Size12
  2846. TextLabel40.TextColor3 = Color3.new(1, 1, 1)
  2847. Frame41.Name = "utilities"
  2848. Frame41.Parent = ScreenGui18
  2849. Frame41.Visible = false
  2850. Frame42.Name = "SetButton"
  2851. Frame42.Parent = Frame41
  2852. Frame42.Transparency = 1
  2853. Frame42.Size = UDim2.new(1, 0, 0.100000001, 0)
  2854. Frame42.Visible = false
  2855. Frame42.BackgroundTransparency = 1
  2856. Frame42.BorderColor3 = Color3.new(1, 1, 1)
  2857. TextButton43.Name = "NameButton"
  2858. TextButton43.Parent = Frame42
  2859. TextButton43.Transparency = 1
  2860. TextButton43.Size = UDim2.new(0.75, 0, 1, 0)
  2861. TextButton43.Text = "Set Name"
  2862. TextButton43.Position = UDim2.new(0.25, 0, 0, 0)
  2863. TextButton43.BackgroundTransparency = 1
  2864. TextButton43.Font = Enum.Font.Arial
  2865. TextButton43.FontSize = Enum.FontSize.Size10
  2866. TextButton43.TextColor3 = Color3.new(1, 1, 1)
  2867. TextButton43.TextWrapped = true
  2868. ImageLabel44.Name = "AssetImage"
  2869. ImageLabel44.Parent = Frame42
  2870. ImageLabel44.Transparency = 1
  2871. ImageLabel44.Size = UDim2.new(0.25, 0, 1, 0)
  2872. ImageLabel44.BackgroundColor3 = Color3.new(1, 1, 1)
  2873. ImageLabel44.BackgroundTransparency = 1
  2874. ImageLabel44.Image = "http://www.roblox.com/asset/?id=0"
  2875. ImageButton45.Name = "AssetButton"
  2876. ImageButton45.Parent = Frame41
  2877. ImageButton45.Transparency = 1
  2878. ImageButton45.Size = UDim2.new(0.150000006, 0, 0.200000003, 0)
  2879. ImageButton45.Position = UDim2.new(0.0499999635, 0, 0.0500000007, 0)
  2880. ImageButton45.Visible = false
  2881. ImageButton45.BackgroundColor3 = Color3.new(1, 1, 1)
  2882. ImageButton45.BackgroundTransparency = 1
  2883. ImageButton45.Image = "http://www.roblox.com/asset/?id="
  2884. Frame46.Name = "BackpackPrompt"
  2885. Frame46.Parent = ScreenGui18
  2886. Frame46.Size = UDim2.new(0, 200, 0, 100)
  2887. Frame46.Style = Enum.FrameStyle.RobloxRound
  2888. Frame46.Position = UDim2.new(0.5, -100, 0.5, -50)
  2889. Frame46.Visible = false
  2890. Frame46.Draggable = true
  2891. TextLabel47.Name = "Question"
  2892. TextLabel47.Parent = Frame46
  2893. TextLabel47.Transparency = 1
  2894. TextLabel47.Size = UDim2.new(1, 0, 0.5, 0)
  2895. TextLabel47.Text = "Place tool in Backpack?"
  2896. TextLabel47.BackgroundTransparency = 1
  2897. TextLabel47.Font = Enum.Font.ArialBold
  2898. TextLabel47.FontSize = Enum.FontSize.Size14
  2899. TextLabel47.TextColor3 = Color3.new(1, 1, 1)
  2900. TextButton48.Name = "Yes"
  2901. TextButton48.Parent = Frame46
  2902. TextButton48.Size = UDim2.new(0.5, 0, 0.25, 0)
  2903. TextButton48.Style = Enum.ButtonStyle.RobloxButtonDefault
  2904. TextButton48.Text = "Yes"
  2905. TextButton48.Position = UDim2.new(0.250000119, 0, 0.399999976, 0)
  2906. TextButton48.Font = Enum.Font.Arial
  2907. TextButton48.FontSize = Enum.FontSize.Size12
  2908. TextButton48.TextColor3 = Color3.new(1, 1, 1)
  2909. TextButton49.Name = "No"
  2910. TextButton49.Parent = Frame46
  2911. TextButton49.Size = UDim2.new(0.5, 0, 0.25, 0)
  2912. TextButton49.Style = Enum.ButtonStyle.RobloxButtonDefault
  2913. TextButton49.Text = "No"
  2914. TextButton49.Position = UDim2.new(0.250000119, 0, 0.699999988, 0)
  2915. TextButton49.Font = Enum.Font.Arial
  2916. TextButton49.FontSize = Enum.FontSize.Size12
  2917. TextButton49.TextColor3 = Color3.new(1, 1, 1)
  2918. for i,v in pairs(mas:GetChildren()) do
  2919. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  2920. pcall(function() v:MakeJoints() end)
  2921. end
  2922. mas:Destroy()
  2923. for i,v in pairs(cors) do
  2924. spawn(function()
  2925. pcall(v)
  2926. end)
  2927. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement