Pure_Guy

oofy gui V3 by PureRandom

Jul 22nd, 2019
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.67 KB | None | 0 0
  1. -- made by PureRandom
  2.  
  3. -- Version 0.3
  4.    
  5. --   --change log --  --  --  --  --  --\
  6. --                                       \
  7. -- fixed a few scripts                    \
  8. -- added new functions                    |
  9. -- made it more stable                    /
  10. --                                       /  
  11. --   --change log --  --  --  --  --  --/
  12.  
  13.  
  14. -- works as of 22/07/19
  15.  
  16. -- Instances:
  17. local oofyGUI = Instance.new("ScreenGui")
  18. local maingui = Instance.new("Frame")
  19. local title = Instance.new("TextLabel")
  20. local god = Instance.new("TextButton")
  21. local Btools = Instance.new("TextButton")
  22. local speed = Instance.new("TextButton")
  23. local eclickTP = Instance.new("TextButton")
  24. local close = Instance.new("TextButton")
  25. local feflood = Instance.new("TextButton")
  26. local Noclip = Instance.new("TextButton")
  27. local fly = Instance.new("TextButton")
  28. local chattroll = Instance.new("TextButton")
  29. local creeperR6 = Instance.new("TextButton")
  30. local explorer = Instance.new("TextButton")
  31. local gettool = Instance.new("TextButton")
  32. local savetool = Instance.new("TextButton")
  33. --Properties:
  34. oofyGUI.Name = "oofy GUI"
  35. oofyGUI.Parent = game.CoreGui
  36.  
  37. maingui.Name = "maingui"
  38. maingui.Parent = oofyGUI
  39. maingui.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  40. maingui.Position = UDim2.new(0.346260846, 0, 0.191559449, 0)
  41. maingui.Size = UDim2.new(0, 532, 0, 309)
  42. maingui.Draggable = true
  43. maingui.Active = true
  44.  
  45. title.Name = "title"
  46. title.Parent = maingui
  47. title.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  48. title.BorderSizePixel = 0
  49. title.Position = UDim2.new(0.359855831, 0, 0, 0)
  50. title.Size = UDim2.new(0, 148, 0, 40)
  51. title.Font = Enum.Font.SciFi
  52. title.Text = "oofy gui V3"
  53. title.TextColor3 = Color3.new(0, 0, 0)
  54. title.TextSize = 20
  55.  
  56. god.Name = "god"
  57. god.Parent = maingui
  58. god.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  59. god.Position = UDim2.new(0, 0, 0.203883499, 0)
  60. god.Size = UDim2.new(0, 149, 0, 50)
  61. god.Font = Enum.Font.SourceSans
  62. god.Text = "FE god"
  63. god.TextColor3 = Color3.new(0, 0, 0)
  64. god.TextSize = 14
  65. god.MouseButton1Down:connect(function()
  66.     game.Players.LocalPlayer.Character.Humanoid.Name = 1
  67. local l = game.Players.LocalPlayer.Character["1"]:Clone()
  68. l.Parent = game.Players.LocalPlayer.Character
  69. l.Name = "Humanoid"
  70. wait(0.1)
  71. game.Players.LocalPlayer.Character["1"]:Destroy()
  72. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  73. game.Players.LocalPlayer.Character.Animate.Disabled = true
  74. wait(0.1)
  75. game.Players.LocalPlayer.Character.Animate.Disabled = false
  76. game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
  77. end)
  78.  
  79. Btools.Name = "Btools"
  80. Btools.Parent = maingui
  81. Btools.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  82. Btools.Position = UDim2.new(0, 0, 0.41747573, 0)
  83. Btools.Size = UDim2.new(0, 149, 0, 50)
  84. Btools.Font = Enum.Font.SourceSans
  85. Btools.Text = "Btools"
  86. Btools.TextColor3 = Color3.new(0, 0, 0)
  87. Btools.TextSize = 14
  88. Btools.MouseButton1Down:connect(function()
  89.     game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  90. for index, child in pairs(game:GetService("Workspace"):GetChildren()) do
  91.    if child.ClassName == "Part" then
  92.        child.Locked = false
  93.    end
  94.    if child.ClassName == "MeshPart" then
  95.        child.Locked = false
  96.    end
  97.    if child.ClassName == "UnionOperation" then
  98.        child.Locked = false
  99.    end
  100.    if child.ClassName == "Model" then
  101.        for index, chil in pairs(child:GetChildren()) do
  102.            if chil.ClassName == "Part" then
  103.                chil.Locked = false
  104.            end
  105.            if chil.ClassName == "MeshPart" then
  106.                chil.Locked = false
  107.            end
  108.            if chil.ClassName == "UnionOperation" then
  109.                chil.Locked = false
  110.            end
  111.            if chil.ClassName == "Model" then
  112.                for index, childe in pairs(chil:GetChildren()) do
  113.                    if childe.ClassName == "Part" then
  114.                        childe.Locked = false
  115.                    end
  116.                    if childe.ClassName == "MeshPart" then
  117.                        childe.Locked = false
  118.                    end
  119.                    if childe.ClassName == "UnionOperation" then
  120.                        childe.Locked = false
  121.                    end
  122.                    if childe.ClassName == "Model" then
  123.                        for index, childeo in pairs(childe:GetChildren()) do
  124.                            if childeo.ClassName == "Part" then
  125.                                childeo.Locked = false
  126.                            end
  127.                            if childeo.ClassName == "MeshPart" then
  128.                                childeo.Locked = false
  129.                            end
  130.                            if childeo.ClassName == "UnionOperation" then
  131.                                childeo.Locked = false
  132.                            end
  133.                            if childeo.ClassName == "Model" then
  134.                            end
  135.                        end
  136.                    end
  137.                end
  138.            end
  139.        end
  140.    end
  141. end
  142. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  143. c.BinType = Enum.BinType.Hammer
  144. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  145. c.BinType = Enum.BinType.Clone
  146. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  147. c.BinType = Enum.BinType.Grab
  148. end)
  149.  
  150. speed.Name = "speed"
  151. speed.Parent = maingui
  152. speed.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  153. speed.Position = UDim2.new(0, 0, 0.631067991, 0)
  154. speed.Size = UDim2.new(0, 149, 0, 50)
  155. speed.Font = Enum.Font.SourceSans
  156. speed.Text = "Speed"
  157. speed.TextColor3 = Color3.new(0, 0, 0)
  158. speed.TextSize = 14
  159. speed.MouseButton1Down:connect(function()
  160.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 75
  161. end)
  162.  
  163. eclickTP.Name = "e + click TP"
  164. eclickTP.Parent = maingui
  165. eclickTP.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  166. eclickTP.Position = UDim2.new(0, 0, 0.838187754, 0)
  167. eclickTP.Size = UDim2.new(0, 149, 0, 50)
  168. eclickTP.Font = Enum.Font.SourceSans
  169. eclickTP.Text = "E + Click TP"
  170. eclickTP.TextColor3 = Color3.new(0, 0, 0)
  171. eclickTP.TextSize = 14
  172. eclickTP.MouseButton1Down:connect(function()
  173.     local enableKey = "e" -- what key you need to press to teleport
  174.  
  175. ------------------------------------
  176. -- getting needed locals
  177. local p = game.Players.LocalPlayer
  178. local mouse = p:GetMouse()
  179. local char = p.Character
  180. -- creating gui creation functions
  181. local function setProperties(gui,t)
  182.     gui.BackgroundColor3 = Color3.new(0,0,0)
  183.     gui.BackgroundTransparency = t
  184.     gui.BorderSizePixel = 0
  185. end
  186.  
  187. local function setText(gui,te)
  188.     gui.TextStrokeTransparency = 0
  189.     gui.TextStrokeColor3 = Color3.new(255,255,255)
  190.     gui.TextColor3 = Color3.new(0,0,0)
  191.     gui.Text = te
  192.     gui.TextScaled = true
  193.     gui.TextXAlignment = Enum.TextXAlignment.Center
  194. end
  195. --- creating gui
  196. local gui = Instance.new("ScreenGui",p.PlayerGui)
  197. gui.Name = "TeleportationInfo"
  198. local f = Instance.new("Frame",gui)
  199. f.Size = UDim2.new(0.2,0,0.4,0)
  200. f.Position = UDim2.new(1,0,0.3,0)
  201. setProperties(f,0.5)
  202. local open = Instance.new("TextButton",gui)
  203. open.Name = "Open"
  204. setProperties(open,0.5)
  205. setText(open,"Tele Help")
  206. open.Size = UDim2.new(0.1,0,0.05,0)
  207. open.Position = UDim2.new(1 - open.Size.X.Scale,0,0.5,0)
  208. local text = Instance.new("TextLabel",f)
  209. text.Name = "Text"
  210. setProperties(text,1)
  211. text.Size = UDim2.new(1,0,0.8,0)
  212. setText(text,"Hold 'e' and click where you want to teleport. Click on this gui to close.")
  213. local name = "elite_doge"
  214. local text2  = text:Clone()
  215. text2.Parent = text.Parent
  216. text2.Size = UDim2.new(1,0,0.2,0)
  217. text2.Position = UDim2.new(0,0,0.8,0)
  218. text2.Name = "Creator"
  219. local isOpen = false
  220. local close = Instance.new("TextButton",f)
  221. close.Name = "Close"
  222. text2.Text = "Developed by " .. name.. ", 1/11/2015"
  223. setProperties(close,1)
  224. close.Visible = false
  225. close.Text = ""
  226. close.Size = UDim2.new(1,0,1,0)
  227. -- creating gui functions
  228. close.MouseButton1Down:connect(function()
  229.     if isOpen == true then
  230.         f:TweenPosition(UDim2.new(1,0,0.3,0),"InOut","Quad",1,true)
  231.         open:TweenPosition(UDim2.new(1 - open.Size.X.Scale,0,0.5,0),"InOut","Quad",1,true)
  232.         isOpen = false
  233.         close.Visible = false
  234.     else
  235.         close.Visible = false
  236.         open:TweenPosition(UDim2.new(1,0,0.5,0),"InOut","Quad",1,true)
  237.     end
  238. end)
  239.  
  240. open.MouseButton1Down:connect(function()
  241.     if isOpen == false then
  242.         isOpen = true
  243.         f:TweenPosition(UDim2.new(1 - f.Size.X.Scale,0,0.3,0),"InOut","Quad",1,true)
  244.         open:TweenPosition(UDim2.new(1,0,0.5,0),"InOut","Quad",1,true)
  245.         close.Visible = true
  246.     end
  247. end)
  248. -- click and keydown functions
  249. local enabled = false
  250.  
  251. mouse.KeyDown:connect(function(key)
  252.     key = key:lower()
  253.     if key == "e" then
  254.         enabled = true
  255.     end
  256. end)
  257.  
  258. mouse.KeyUp:connect(function(key)
  259.     key = key:lower()
  260.     if key == "e" then
  261.         enabled = false
  262.     end
  263. end)
  264.  
  265. mouse.Button1Down:connect(function()
  266.     if char and enabled == true then
  267.         char.HumanoidRootPart.CFrame = mouse.Hit + Vector3.new(0,7,0)
  268.     end
  269. end)
  270. end)
  271.  
  272. close.Name = "close"
  273. close.Parent = maingui
  274. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  275. close.Position = UDim2.new(0.939585924, 0, 9.31322575e-10, 0)
  276. close.Size = UDim2.new(0, 32, 0, 28)
  277. close.Font = Enum.Font.SourceSans
  278. close.Text = "X"
  279. close.TextColor3 = Color3.new(0, 0, 0)
  280. close.TextSize = 14
  281. close.MouseButton1Down:connect(function()
  282.     script.Parent:Remove()
  283. end)
  284.  
  285. feflood.Name = "fe flood"
  286. feflood.Parent = maingui
  287. feflood.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  288. feflood.Position = UDim2.new(0.719066083, 0, 0.197411031, 0)
  289. feflood.Size = UDim2.new(0, 149, 0, 50)
  290. feflood.Font = Enum.Font.SourceSans
  291. feflood.Text = "fe flood"
  292. feflood.TextColor3 = Color3.new(0, 0, 0)
  293. feflood.TextSize = 14
  294. feflood.MouseButton1Down:connect(function()
  295.     local region = Region3.new(Vector3.new(-1250,0,-1250), Vector3.new(1250,18,1250))
  296. region = region:ExpandToGrid(4)
  297. game.Workspace.Terrain:FillRegion(region, 4, Enum.Material.Water)
  298. end)
  299.  
  300.  
  301. Noclip.Name = "Noclip"
  302. Noclip.Parent = maingui
  303. Noclip.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  304. Noclip.Position = UDim2.new(0.718730927, 0, 0.41747576, 0)
  305. Noclip.Size = UDim2.new(0, 149, 0, 50)
  306. Noclip.Font = Enum.Font.SourceSans
  307. Noclip.Text = "Noclip"
  308. Noclip.TextColor3 = Color3.new(0, 0, 0)
  309. Noclip.TextSize = 14
  310. Noclip.MouseButton1Down:connect(function()
  311.     noclip = false
  312. game:GetService('RunService').Stepped:connect(function()
  313. if noclip then
  314. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  315. end
  316. end)
  317. plr = game.Players.LocalPlayer
  318. mouse = plr:GetMouse()
  319. mouse.KeyDown:connect(function(key)
  320.  
  321. if key == "q" then
  322. noclip = not noclip
  323. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  324. end
  325. end)
  326. end)
  327.  
  328. fly.Name = "fly"
  329. fly.Parent = maingui
  330. fly.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  331. fly.Position = UDim2.new(0.718730986, 0, 0.838187754, 0)
  332. fly.Size = UDim2.new(0, 149, 0, 50)
  333. fly.Font = Enum.Font.SourceSans
  334. fly.Text = "fly"
  335. fly.TextColor3 = Color3.new(0, 0, 0)
  336. fly.TextSize = 14
  337. fly.MouseButton1Down:connect(function()
  338.     repeat wait()
  339.     until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  340. local mouse = game.Players.LocalPlayer:GetMouse()
  341. repeat wait() until mouse
  342. local plr = game.Players.LocalPlayer
  343. local torso = plr.Character.Torso
  344. local flying = true
  345. local deb = true
  346. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  347. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  348. local maxspeed = 50
  349. local speed = 0
  350.  
  351. function Fly()
  352. local bg = Instance.new("BodyGyro", torso)
  353. bg.P = 9e4
  354. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  355. bg.cframe = torso.CFrame
  356. local bv = Instance.new("BodyVelocity", torso)
  357. bv.velocity = Vector3.new(0,0.1,0)
  358. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  359. repeat wait()
  360. plr.Character.Humanoid.PlatformStand = true
  361. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  362. speed = speed+.5+(speed/maxspeed)
  363. if speed > maxspeed then
  364. speed = maxspeed
  365. end
  366. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  367. speed = speed-1
  368. if speed < 0 then
  369. speed = 0
  370. end
  371. end
  372. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  373. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  374. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  375. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  376. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  377. else
  378. bv.velocity = Vector3.new(0,0.1,0)
  379. end
  380. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  381. until not flying
  382. ctrl = {f = 0, b = 0, l = 0, r = 0}
  383. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  384. speed = 0
  385. bg:Destroy()
  386. bv:Destroy()
  387. plr.Character.Humanoid.PlatformStand = false
  388. end
  389. mouse.KeyDown:connect(function(key)
  390. if key:lower() == "e" then
  391. if flying then flying = false
  392. else
  393. flying = true
  394. Fly()
  395. end
  396. elseif key:lower() == "w" then
  397. ctrl.f = 1
  398. elseif key:lower() == "s" then
  399. ctrl.b = -1
  400. elseif key:lower() == "a" then
  401. ctrl.l = -1
  402. elseif key:lower() == "d" then
  403. ctrl.r = 1
  404. end
  405. end)
  406. mouse.KeyUp:connect(function(key)
  407. if key:lower() == "w" then
  408. ctrl.f = 0
  409. elseif key:lower() == "s" then
  410. ctrl.b = 0
  411. elseif key:lower() == "a" then
  412. ctrl.l = 0
  413. elseif key:lower() == "d" then
  414. ctrl.r = 0
  415. end
  416. end)
  417. Fly()
  418. end)
  419.  
  420. chattroll.Name = "chat troll"
  421. chattroll.Parent = maingui
  422. chattroll.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  423. chattroll.Position = UDim2.new(0.359708428, 0, 0.19741106, 0)
  424. chattroll.Size = UDim2.new(0, 149, 0, 50)
  425. chattroll.Font = Enum.Font.SourceSans
  426. chattroll.Text = "chat troll"
  427. chattroll.TextColor3 = Color3.new(0, 0, 0)
  428. chattroll.TextSize = 14
  429. chattroll.MouseButton1Click:connect(function()
  430.     game:GetService('RunService').Heartbeat:connect(function()
  431. game.Players:Chat('IN BRITAN BRITS LIKE TEA. IN SOVIET RUSSIA TEA LIKES YOU :3')
  432. end)
  433. end)
  434.  
  435. creeperR6.Name = "creeper (R6)"
  436. creeperR6.Parent = maingui
  437. creeperR6.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  438. creeperR6.Position = UDim2.new(0.359708428, 0, 0.414239556, 0)
  439. creeperR6.Size = UDim2.new(0, 149, 0, 50)
  440. creeperR6.Font = Enum.Font.SourceSans
  441. creeperR6.Text = "creeper (R6)"
  442. creeperR6.TextColor3 = Color3.new(0, 0, 0)
  443. creeperR6.TextSize = 14
  444. creeperR6.MouseButton1Click:connect(function()
  445. local lol = game:GetService('Players').LocalPlayer
  446. lol.Character["Head"].Mesh:Destroy()
  447. lol.Character["Left Arm"]:Destroy()
  448. lol.Character["Right Arm"]:Destroy()
  449.  
  450. for i,v in pairs(game:GetService('Players').LocalPlayer.Character:GetDescendants()) do
  451. if v:IsA'Hat' or v:IsA'Accessory' then
  452. v.Parent = game:GetService'Workspace'
  453. end
  454. end
  455.  
  456. local fuck = game:GetService('Players').LocalPlayer
  457. if game.Players.LocalPlayer == fuck then
  458. print("succesfully creeped u! enjoy!")
  459. end
  460. end)
  461.  
  462. explorer.Name = "explorer"
  463. explorer.Parent = maingui
  464. explorer.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  465. explorer.Position = UDim2.new(0.718730986, 0, 0.631067991, 0)
  466. explorer.Size = UDim2.new(0, 149, 0, 50)
  467. explorer.Font = Enum.Font.SourceSans
  468. explorer.Text = "explorer"
  469. explorer.TextColor3 = Color3.new(0, 0, 0)
  470. explorer.TextSize = 14
  471. explorer.MouseButton1Click:connect(function()
  472.     TextProperties = {"ClassName", "Name", "Value", "Text", "Reflectance", "Transparency", "Heat", "TeamName", "WalkSpeed", "Health", "MaxHealth", "Size", "Position", "AccountAge", "RobloxLocked", "TeamColor", "userId", "Brightness", "Ambient", "TimeOfDay", "FieldOfView", "CameraType", "LinkedSource"}
  473. BoolProperties = {"Anchored", "CanCollide", "Disabled", "Jump", "Sit", "Visible", "Enabled", "Locked", "FilteringEnabled", "StreamingEnabled", "GlobalShadows"}
  474. BrickColorProperties = {"BrickColor", "Color", "TeamColor", "Texture", "Value"}
  475. s = Instance.new("ScreenGui", game.CoreGui)
  476. pgr = Instance.new("TextButton")
  477. pgr.Parent = s
  478. pgr.Size = UDim2.new(0,100,0,40)
  479. pgr.Position = UDim2.new(0,30,0,440)
  480. pgr.Text="Explorer"
  481. pgr.BackgroundTransparency = 0.3
  482. pgr.TextColor = BrickColor.new("White")
  483. pgr.BackgroundColor = BrickColor.new("Really Black")
  484. pgr.BorderColor = BrickColor.new("Black")
  485. pgr.Font = "ArialBold"
  486. pgr.FontSize = "Size14"
  487. pgr.TextStrokeColor3 = Color3.new(0/0,0/0,0/0)
  488. pgr.TextStrokeTransparency = 0.3
  489. pgr.BorderSizePixel = 1
  490. pgr.BorderColor = BrickColor.new("White")
  491.  
  492. if game.CoreGui:findFirstChild("Explorer") then
  493.     game.CoreGui:findFirstChild("Explorer"):Remove()
  494. end
  495.  
  496. local Cloned
  497. local Deleted
  498. local DeleteParent
  499. local Player
  500. local Search
  501. local ScriptSearch
  502. local Gui
  503. local Cloned = nil
  504. local Deleted = nil
  505. local DeleteParent = nil
  506. local Current = 0
  507. local CurrentOption = 0
  508.  
  509. function Clear()
  510.     if Gui then
  511.         Gui:Remove()
  512.     end
  513.     Current = 0
  514.     CurrentOption = 0
  515. end
  516.  
  517. function AddButton(N, Function, Color, Copy)
  518.     if not N then
  519.         error("RenderButton - No Name Specified")
  520.     end
  521.     if not Function then
  522.         error("RenderButton - No Function Specified")
  523.     end
  524.     if not Color then
  525.         Color = Color3.new(1, 1, 1)
  526.     end
  527.     if Copy == nil then
  528.         Copy = true
  529.     end
  530.     P = Instance.new("TextButton")
  531.     if Copy then
  532.         P.Size = UDim2.new(0, 110, 0, 20)
  533.     else
  534.         P.Size = UDim2.new(0, 130, 0, 20)
  535.     end
  536.     P.Text = N.Name
  537.     P.Name = N.Name
  538.     P.Parent = Gui
  539.     P.BackgroundColor3 = Color
  540.     P.TextColor3 = Color3.new(0, 0, 0)
  541.     P.BackgroundTransparency = 0.5
  542.     P.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300, 0, 50+(20*((Current%30)-1)))
  543.     P.MouseButton1Click:connect(function()
  544.         Function(P)
  545.     end)
  546.     D = Instance.new("TextButton")
  547.     D.Size = UDim2.new(0, 20, 0, 20)
  548.     D.Text = "X"
  549.     D.Name = N.Name
  550.     D.Parent = Gui
  551.     D.BackgroundColor3 = Color3.new(1, 0, 0)
  552.     D.TextColor3 = Color3.new(0, 0, 0)
  553.     D.BackgroundTransparency = 0.5
  554.     D.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300+130, 0, 50+(20*((Current%30)-1)))
  555.     D.MouseButton1Click:connect(function()
  556.         Deleted = N
  557.         DeleteParent = N.Parent
  558.         N.Parent = nil
  559.         Clear()
  560.         Search(DeleteParent)
  561.     end)
  562.     if Copy then
  563.         C = Instance.new("TextButton")
  564.         C.Size = UDim2.new(0, 20, 0, 20)
  565.         C.Text = "C"
  566.         C.Name = N.Name
  567.         C.Parent = Gui
  568.         C.BackgroundColor3 = Color3.new(0, 1, 0.5)
  569.         C.TextColor3 = Color3.new(0, 0, 0)
  570.         C.BackgroundTransparency = 0.5
  571.         C.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300+110, 0, 50+(20*((Current%30)-1)))
  572.         C.MouseButton1Click:connect(function()
  573.             Cloned = N
  574.             Clear()
  575.             Search(N.Parent)
  576.         end)
  577.     end
  578.     Current = Current + 1
  579.     return P
  580. end
  581.    
  582. function AddOption(N, Function, Color, Text)
  583.     if not N then
  584.         error("RenderButton - No Name Specified")
  585.     end
  586.     if not Color then
  587.         Color = Color3.new(1, 1, 1)
  588.     end
  589.     if Text == nil then
  590.         Text = false
  591.     end
  592.     if Text then
  593.         P = Instance.new("TextBox")
  594.     else
  595.         P = Instance.new("TextButton")
  596.     end
  597.     P.Text = N
  598.     P.Name = N
  599.     P.Parent = Gui
  600.     P.BackgroundColor3 = Color
  601.     P.TextColor3 = Color3.new(0, 0, 0)
  602.     P.BackgroundTransparency = 0.5
  603.     P.Size = UDim2.new(0, 150, 0, 20)
  604.     P.Position = UDim2.new(0, ((math.modf(CurrentOption/30))*150)+150, 0, 50+(20*((CurrentOption%30)-1)))
  605.     if not Text and Function then
  606.         P.MouseButton1Click:connect(function() Function(P) end)
  607.     end
  608.     CurrentOption = CurrentOption + 1
  609.     return P
  610. end
  611.  
  612. function AddTextOption(Obj, Prop)
  613.     local Ob = Obj
  614.     local Pro = Prop
  615.     if type(Ob[Pro]) == "number" or type(Ob[Pro]) == "string" then
  616.         CurrentOption = CurrentOption + 1
  617.         local T = AddOption(Ob[Pro], nil, Color3.new(0.1, 0.4, 0.1), true)
  618.         CurrentOption = CurrentOption - 2
  619.         local O = AddOption("Change "..Pro..":", function() Ob[Pro] = T.Text end, Color3.new(0.1, 0.8, 0.1), false)
  620.         CurrentOption = CurrentOption + 1
  621.     end
  622. end
  623.  
  624. function AddBrickColorOption(Obj, Prop)
  625.     local Ob = Obj
  626.     local Pro = Prop
  627.     if BrickColor.new(tostring(Ob[Pro])) == Ob[Pro] then
  628.         CurrentOption = CurrentOption + 1
  629.         local T = AddOption(tostring(Ob[Pro]), nil, Color3.new(0.1, 0.4, 0.1), true)
  630.         CurrentOption = CurrentOption - 2
  631.         local O = AddOption("Change "..Pro..":", function() Ob[Pro] = BrickColor.new(T.Text) end, Color3.new(0.1, 0.8, 0.1), false)
  632.         CurrentOption = CurrentOption + 1
  633.     end
  634. end
  635.  
  636. function AddBoolOption(Obj, Prop)
  637.     local Ob = Obj
  638.     local Pro = Prop
  639.     if type(Ob[Pro]) == "boolean" then
  640.         local O = AddOption(Pro..": "..tostring(Ob[Pro]), nil, Color3.new(0.1, 0.8, 0.1), false)
  641.         O.MouseButton1Click:connect(function()
  642.             if Ob[Pro] then
  643.                 Ob[Pro] = false
  644.                 O.Text = Pro..": false"
  645.             else
  646.                 Ob[Pro] = true
  647.                 O.Text = Pro..": true"
  648.             end
  649.         end)
  650.     end
  651. end
  652.  
  653. function TestProperty(Obj, Property)
  654.     Success = pcall(function()
  655.         if Obj[Property] then
  656.             return
  657.         end
  658.     end)
  659.     return Success
  660. end
  661.  
  662. function LoadOptions(Object)
  663.     for Num, Prop in pairs(TextProperties) do
  664.         if TestProperty(Object, Prop) then
  665.             AddTextOption(Object, Prop)
  666.         end
  667.     end
  668.     for Num, Prop in pairs(BoolProperties) do
  669.         if TestProperty(Object, Prop) then
  670.             AddBoolOption(Object, Prop)
  671.         end
  672.     end
  673.     for Num, Prop in pairs(BrickColorProperties) do
  674.         if TestProperty(Object, Prop) then
  675.             AddBrickColorOption(Object, Prop)
  676.         end
  677.     end
  678. end
  679.  
  680. function Search(Object)
  681.     Gui = Instance.new("ScreenGui")
  682.     Gui.Parent = game.CoreGui
  683.     Gui.Name = "Explorer"
  684.     if Object ~= game then
  685.         AddOption("Back", function()
  686.             Clear();
  687.             Search(Object.Parent)
  688.         end, Color3.new(0.5, 1, 1), false)
  689.     end
  690.     AddOption("Reload", function() Clear(); Search(Object); end, Color3.new(0.2, 1, 0.2), false)
  691.     if Cloned then
  692.         AddOption("Paste", function() Cloned:Clone().Parent = Object; Clear(); Search(Object); end, Color3.new(0.5, 1, 1), false)
  693.     end
  694.     if Deleted then
  695.         AddOption("Undo", function() Deleted.Parent = DeleteParent; Deleted = nil; DeletedParent = nil; Clear(); Search(Object); end, Color3.new(1, 0.6, 0.1), false)
  696.     end
  697.     if Object:IsA("Player") then
  698.         AddOption("Goto Character", function() Clear(); if Object.Character then Search(Object.Character); end end, Color3.new(1, 1, 1), false)
  699.     end
  700.     if Object:IsA("LocalScript") then
  701.         AddOption("EditScript", function() Clear(); ScriptSearch(Object); end, Color3.new(1, 1, 1), false)
  702.     end
  703.     if Object:IsA("Terrain") then
  704.         AddOption("Clear", function() Object:Clear(); end, Color3.new(1, 1, 1), false)
  705.     end
  706.     LoadOptions(Object)
  707.     AddOption("Close", Clear, Color3.new(1, 0.2, 0), false)
  708.     if not Object:IsA("Workspace") or not Object:IsA("Player") then
  709.         for Num, Obj in pairs(Object:GetChildren()) do
  710.             --if not Obj:IsA("BasePart") or not Object.Parent == game.Workspace then
  711.             if true then
  712.                 if Obj:IsA("LocalScript") then
  713.                     AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 0, 0), true)
  714.                 elseif Obj:IsA("Script") or Obj:IsA("StarterScript") or Obj:IsA("CoreScript") then
  715.                     AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(0.5, 0.5, 0.8), true)
  716.                 elseif Obj.Parent == game then
  717.                     AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 1, 1), false)
  718.                 else
  719.                     AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 1, 1), true)
  720.                 end
  721.             end
  722.         end
  723.     end
  724.     function MoveUp(Place, Amount)
  725.         for i,v in pairs(Place:GetChildren()) do
  726.             if v:IsA("TextLabel") or v:IsA("TextBox") then
  727.                 v.Position = v.Position + UDim2.new(0,0,0,-Amount)
  728.             end
  729.         end
  730.     end
  731.     function MoveDown(Place, Amount)
  732.         for i,v in pairs(Place:GetChildren()) do
  733.             if v:IsA("TextLabel") or v:IsA("TextBox") then
  734.                 v.Position = v.Position + UDim2.new(0,0,0,Amount)
  735.             end
  736.         end
  737.     end
  738.     i=0
  739.     function ScriptSearch(S)
  740.         Script2 = S
  741.         Script = Script2.Source
  742.         Table = {}
  743.         Enabled = true
  744.         Gui = Instance.new("ScreenGui")
  745.         Gui.Parent = game.CoreGui
  746.         Gui.Name = "Explorer"
  747.         while Enabled do
  748.             Start, End = string.find(Script, '\n')
  749.             print(Start, End)
  750.             if Start and End then
  751.                 table.insert(Table, string.sub(Script, 1, End))
  752.                 New = string.sub(Script, End+1, string.len(Script))
  753.                 Script = New
  754.             else
  755.                 Enabled = false
  756.                 table.insert(Table, string.sub(Script, 1, End))
  757.                 print("Finished")
  758.             end
  759.         end
  760.         P = Instance.new("TextLabel")
  761.         P.Size = UDim2.new(0, 500, 0, 20)
  762.         P.Text = Script2.Name
  763.         P.Name = "Script Line"
  764.         P.Parent = Gui
  765.         P.BackgroundColor3 = Color3.new(1, 1, 1)
  766.         P.TextColor3 = Color3.new(0, 0, 0)
  767.         P.BackgroundTransparency = 0.5
  768.         P.Position = UDim2.new(0.5, -250, 0, 150+(20*(i-1)))
  769.         P.TextXAlignment = "Left"
  770.         i=i+1
  771.         New = {}
  772.         for I,Val in pairs(Table) do
  773.             print(Val)
  774.             P = Instance.new("TextBox")
  775.             P.ClearTextOnFocus = false
  776.             P.Size = UDim2.new(0, 500, 0, 20)
  777.             P.Text = Val
  778.             P.Name = "Script Line"
  779.             P.Parent = Gui
  780.             P.BackgroundColor3 = Color3.new(1, 1, 1)
  781.             P.TextColor3 = Color3.new(0, 0, 0)
  782.             P.BackgroundTransparency = 0.5
  783.             P.Position = UDim2.new(0.5, -250, 0, 150+(20*(i-1)))
  784.             P.TextXAlignment = "Left"
  785.             table.insert(New, P)
  786.             i=i+1
  787.         end
  788.         i=1
  789.         P = Instance.new("TextButton")
  790.         P.Size = UDim2.new(0, 20, 0, 20)
  791.         P.Text = "^"
  792.         P.Name = "Scroll"
  793.         P.Parent = Gui
  794.         P.BackgroundColor3 = Color3.new(1, 1, 1)
  795.         P.TextColor3 = Color3.new(0, 0, 0)
  796.         P.BackgroundTransparency = 0.5
  797.         P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  798.         P.MouseButton1Click:connect(function()
  799.             MoveUp(Gui, -20)
  800.         end)
  801.         i=i+1
  802.         P = Instance.new("TextButton")
  803.         P.Size = UDim2.new(0, 20, 0, 20)
  804.         P.Text = "v"
  805.         P.Name = "Scroll"
  806.         P.Parent = Gui
  807.         P.BackgroundColor3 = Color3.new(1, 1, 1)
  808.         P.TextColor3 = Color3.new(0, 0, 0)
  809.         P.BackgroundTransparency = 0.5
  810.         P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  811.         P.MouseButton1Click:connect(function()
  812.             MoveDown(Gui, -20)
  813.         end)
  814.         i=i+1
  815.         P = Instance.new("TextButton")
  816.         P.Size = UDim2.new(0, 20, 0, 20)
  817.         P.Text = "^^"
  818.         P.Name = "Scroll"
  819.         P.Parent = Gui
  820.         P.BackgroundColor3 = Color3.new(1, 1, 1)
  821.         P.TextColor3 = Color3.new(0, 0, 0)
  822.         P.BackgroundTransparency = 0.5
  823.         P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  824.         P.MouseButton1Click:connect(function()
  825.             MoveUp(Gui, -200)
  826.         end)
  827.         i=i+1
  828.         P = Instance.new("TextButton")
  829.         P.Size = UDim2.new(0, 20, 0, 20)
  830.         P.Text = "vv"
  831.         P.Name = "Scroll"
  832.         P.Parent = Gui
  833.         P.BackgroundColor3 = Color3.new(1, 1, 1)
  834.         P.TextColor3 = Color3.new(0, 0, 0)
  835.         P.BackgroundTransparency = 0.5
  836.         P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  837.         P.MouseButton1Click:connect(function()
  838.             MoveDown(Gui, -200)
  839.         end)
  840.         i=i+1
  841.         P = Instance.new("TextButton")
  842.         P.Size = UDim2.new(0, 20, 0, 20)
  843.         P.Text = "S"
  844.         P.Name = "Save"
  845.         P.Parent = Gui
  846.         P.BackgroundColor3 = Color3.new(0, 1, 0)
  847.         P.TextColor3 = Color3.new(0, 0, 0)
  848.         P.BackgroundTransparency = 0.5
  849.         P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  850.         P.MouseButton1Click:connect(function()
  851.             StringS = ""
  852.             for Num, Obj in pairs(New) do
  853.                 StringS = StringS..Obj.Text..'\n'
  854.             end
  855.             S.Source = StringS
  856.             S.Disabled = true
  857.             S.Disabled = false
  858.         end)
  859.         i=i+1
  860.         P = Instance.new("TextButton")
  861.         P.Size = UDim2.new(0, 20, 0, 20)
  862.         P.Text = "x"
  863.         P.Name = "Back"
  864.         P.Parent = Gui
  865.         P.BackgroundColor3 = Color3.new(1, 0.2, 0)
  866.         P.TextColor3 = Color3.new(0, 0, 0)
  867.         P.BackgroundTransparency = 0.5
  868.         P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1)))
  869.         P.MouseButton1Click:connect(function()
  870.             Clear()
  871.             i=0
  872.             Search(S)
  873.         end)
  874.         i=i+1
  875.     end
  876. end
  877.  
  878. pgr.MouseButton1Click:connect(function()
  879.     Clear()
  880.     Search(game)
  881. end)
  882. end)
  883.  
  884. gettool.Name = "get tool"
  885. gettool.Parent = maingui
  886. gettool.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  887. gettool.Position = UDim2.new(0.357142866, 0, 0.631067991, 0)
  888. gettool.Size = UDim2.new(0, 149, 0, 50)
  889. gettool.Font = Enum.Font.SourceSans
  890. gettool.Text = "get tool"
  891. gettool.TextColor3 = Color3.new(0, 0, 0)
  892. gettool.TextSize = 14
  893. gettool.MouseButton1Click:connect(function()
  894. for _,v in pairs(game.Players.LocalPlayer:GetChildren()) do
  895. if (v:IsA("Tool")) then
  896. v.Parent = game.Players.LocalPlayer.Backpack
  897. end
  898. end
  899. end)
  900.  
  901. savetool.Name = "save tool"
  902. savetool.Parent = maingui
  903. savetool.BackgroundColor3 = Color3.new(1, 0.215686, 0.227451)
  904. savetool.Position = UDim2.new(0.357142866, 0, 0.838187754, 0)
  905. savetool.Size = UDim2.new(0, 149, 0, 50)
  906. savetool.Font = Enum.Font.SourceSans
  907. savetool.Text = "save tool"
  908. savetool.TextColor3 = Color3.new(0, 0, 0)
  909. savetool.TextSize = 14
  910. savetool.MouseButton1Click:connect(function()
  911.     for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  912. if (v:IsA("Tool")) then
  913. v.Parent = game.Players.LocalPlayer
  914. end
  915. end
  916. end)
  917.  
  918. -- other:
  919.  
  920. warn("oofy gui has loaded!")
  921. warn("this is version 0.3")
Add Comment
Please, Sign In to add comment