Advertisement
Createok

Explorer

Dec 6th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.25 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --Last line
  88. local Asset = "http://www.roblox.com/asset/?id="
  89. local Provider = game:service("ContentProvider")
  90. local Seen = 20
  91.  
  92. local C3 = Color3.new
  93. local UD = UDim2.new
  94. local V2 = Vector2.new
  95.  
  96. local Icons = {
  97. PreviousPage = Asset..(57411555),
  98. NextPage = Asset..(57411520),
  99. Previous = Asset..(57375309),
  100. Home = Asset..(57375258),
  101. Refresh = Asset..(57376869),
  102. Properties = Asset..(57475029),
  103. Delete = Asset..(57474956),
  104. Copy = Asset..(57474905),
  105. Paste = Asset..(57474999),
  106. Cut = Asset..(57474927),
  107. Exit = Asset..(57510854),
  108. }
  109.  
  110. local Images = {
  111. {{"IntValue", "BrickColorValue", "Color3Value", "Vector3Value", "CFrameValue", "NumberValue", "ObjectValue", "StringValue", "BoolValue", "RayValue"}, Asset..(57403779)},
  112. {{"BasePart", "Part", "WedgePart"}, Asset..(57403711)},
  113. {{"ForceField"}, Asset..(57404473)},
  114. {{"Weld", "Rotate", "Glue"}, Asset..(57403808)},
  115. {{"BodyVelocity", "BodyPosition", "BodyForce", "BodyGyro", "BodyThrust", "BodyAngularVelocity", "BodyPosition", "RocketPropulsion"}, Asset..(57403610)},
  116. {{"Animation", "AnimationTrack"}, Asset..(57403557)},
  117. {{"Model"}, Asset..(57403668)},
  118. {{"Player", "Players"}, Asset..(57403743)},
  119. {{"BlockMesh", "SpecialMesh", "CylinderMesh", "FileMesh", "CharacterMesh"}, Asset..(57403643)},
  120. {{"TextButton", "TextLabel", "ImageLabel", "ImageButton", "Frame"}, Asset..(57403587)},
  121. {{"Camera"}, Asset..(57406901)},
  122. {{"Hat", "Accoutrement"}, Asset..(57406931)},
  123. {{"LocalScript"}, Asset..(57406954)},
  124. {{"HopperBin"}, Asset..(57406984)},
  125. {{"Tool"}, Asset..(57407105)},
  126. {{"Humanoid"}, Asset..(57407016)},
  127. {{"Script"}, Asset..(57407071)},
  128. {{"Message", "Hint"}, Asset..(57407564)},
  129. {{"Decal"}, Asset..(57583116)},
  130. {{"Pants"}, Asset..(57583183)},
  131. {{"Seat", "VehicleSeat", "SkateboardPlatform"}, Asset..(57583240)},
  132. {{"Shirt"}, Asset..(57583288)},
  133. {{"SpawnLocation"}, Asset..(57583329)},
  134. {{"Texture"}, Asset..(57583364)},
  135. }
  136.  
  137. for _,v in pairs(Images) do
  138. Provider:Preload(v[2])
  139. end
  140.  
  141. wait(0.5)
  142.  
  143. function Find(Object)
  144. local Img = Asset..(57403690)
  145. for _,v in pairs(Images) do
  146. for _,k in pairs(v[1]) do
  147. if Object.className == k then
  148. Img = v[2]
  149. end
  150. end
  151. end
  152. return Img
  153. end
  154.  
  155. local Classes = {"Frame", "ImageLabel", "ImageButton", "TextLabel", "TextButton", "TextBox"}
  156. function Make(Class, Par, Size, Pos, Color, Trans, Border, Borderc, Txt, TxtC, Img)
  157. local Mk = "Frame"
  158. for _,v in pairs(Classes) do
  159. if Class == v then
  160. Mk = v
  161. end
  162. end
  163. local g = Instance.new(Mk)
  164. g.Size = Size
  165. g.Position = Pos
  166. g.BackgroundColor3 = Color
  167. g.Transparency = Trans
  168. g.BorderSizePixel = Border
  169. g.BorderColor3 = Borderc
  170. if Mk == "TextButton" or Mk == "TextLabel" or Mk == "TextBox" then
  171. g.Text = Txt
  172. g.TextColor3 = TxtC
  173. elseif Mk == "ImageLabel" or Mk == "ImageButton" then
  174. g.Image = Img
  175. end
  176. g.Parent = Par
  177. return g
  178. end
  179.  
  180. function Give(Player)
  181. local Place = workspace
  182. local From = 0
  183. local gui = Player:findFirstChild("PlayerGui")
  184. if gui then
  185. for _,v in pairs(gui:children()) do if v.Name == "GuiText" then v:remove() end end
  186. end
  187. local Sc = Instance.new("ScreenGui")
  188. Sc.Name = "GuiText"
  189. local Options = nil
  190. local Copied = nil
  191. local Number = (50-32)
  192. local Resolution = V2(1028, 768)
  193. local Main = Make("Frame", Sc, UD(1, 0, 1, 1), UD(0, 0, 0, -1), C3(0.92, 0.92, 0.96), 1, 0, C3())
  194. coroutine.resume(coroutine.create(function()
  195. wait(0.04)
  196. Resolution = V2(Main.AbsoluteSize.X, Main.AbsoluteSize.Y)
  197. end))
  198. local ExplorerDec = Make("Frame", Main, UD(0, 155, 0, 360), UD(0, 0, 0.5, -175), C3(0.75, 0.75, 0.9), 0, 0, C3())
  199. local Explorer = Make("Frame", ExplorerDec, UD(1, -5, 1, -10), UD(0, 0, 0, 5), C3(0.9, 0.9, 0.95), 0, 0, C3())
  200. local Bar = Make("Frame", Explorer, UD(1, 0, 0, 32), UD(), C3(0.75, 0.75, 0.9), 0, 0, C3())
  201. local Previous = Make("ImageButton", Bar, UD(0, 32, 0, 32), UD(0, 9, 0, 0), C3(0.75, 0.75, 0.9), 0, 0, C3(), nil, nil, Icons.Previous)
  202. local Home = Make("ImageButton", Bar, UD(0, 32, 0, 32), UD(0, 59, 0, 0), C3(0.75, 0.75, 0.9), 0, 0, C3(), nil, nil, Icons.Home)
  203. local Refresh = Make("ImageButton", Bar, UD(0, 32, 0, 32), UD(0, 109, 0, 0), C3(0.75, 0.75, 0.9), 0, 0, C3(), nil, nil, Icons.Refresh)
  204. local List = Make("Frame", Explorer, UD(1, -10, 1, -32-4), UD(0, 5, 0, 32), C3(0.7, 0.7, 0.85), 0, 0, C3())
  205. local NextPage = Make("ImageButton", ExplorerDec, UD(0.5, 0, 0, 30), UD(0.5, 0, 1, 0), C3(0.75, 0.75, 0.9), 0, 0, C3(), nil, nil, Icons.NextPage)
  206. local PreviousPage = Make("ImageButton", ExplorerDec, UD(0.5, 0, 0, 30), UD(0, 0, 1, 0), C3(0.75, 0.75, 0.9), 0, 0, C3(), nil, nil, Icons.PreviousPage)
  207.  
  208. local BackTool = Make("Frame", ExplorerDec, UD(0, 36, 0, (32+4)*4+4), UD(1, 0, 0, 0), C3(0.75, 0.75, 0.9), 0, 0, C3())
  209. local Properties = Make("ImageButton", BackTool, UD(0, 32, 0, 32), UD(0, 0, 0, 4), C3(0.82, 0.82, 0.93), 0, 0, C3(), nil, nil, Icons.Properties)
  210. local CopyP = Make("ImageButton", BackTool, UD(0, 32, 0, 32), UD(0, 0, 0, (32+4)*1+4), C3(0.82, 0.82, 0.93), 0, 0, C3(), nil, nil, Icons.Copy)
  211. local PasteP = Make("ImageButton", BackTool, UD(0, 32, 0, 32), UD(0, 0, 0, (32+4)*2+4), C3(0.82, 0.82, 0.93), 0, 0, C3(), nil, nil, Icons.Paste)
  212. local DeleteP = Make("ImageButton", BackTool, UD(0, 32, 0, 32), UD(0, 0, 0, (32+4)*3+4), C3(0.82, 0.82, 0.93), 0, 0, C3(), nil, nil, Icons.Delete)
  213.  
  214. local Name = Make("TextLabel", ExplorerDec, UD(1, 0, 0, 25), UD(0, 0, 0, -25), C3(0.8, 0.8, 0.95), 0, 0, C3(), "nil", C3())
  215. Name.FontSize = "Size14"
  216. Name.Font = "Arial"
  217. local Size = 350-36
  218. local Buttons = {}
  219. local SeenSize = (Size/Seen)
  220. for i = 0, Size-SeenSize, SeenSize do
  221. local Txt = Make("TextButton", List, UD(1, -SeenSize, 0, SeenSize), UD(0, SeenSize, 0, i), C3(0.8, 0.8, 0.9), 0, 0, C3(), "-", C3())
  222. Txt.Font = "Arial"
  223. Txt.FontSize = "Size12"
  224. Txt.TextWrap = true
  225. Txt.TextXAlignment = "Left"
  226. local Im = Make("ImageLabel", Txt, UD(0, SeenSize, 1, 0), UD(0, -SeenSize, 0, 0), C3(0.76, 0.76, 0.9), 0, 0, C3(), nil, nil, "")
  227. local Button = {Go = nil, Gui = Txt, Img = Im}
  228. table.insert(Buttons, Button)
  229. end
  230. local function Update(P)
  231. if Options then Options:remove() end
  232. if P ~= nil then
  233. Place = P
  234. Name.Text = tostring(Place)
  235.  
  236. local Items = Place:children()
  237. local Amount = #Items
  238. for i = 1, #Buttons do
  239. pcall(function()
  240. local Item = Items[i+From]
  241. if Item then
  242. local img = Find(Item)
  243. Buttons[i].Go = Item
  244. Buttons[i].Gui.Text = Item.Name
  245. Buttons[i].Img.Image = img
  246. else
  247. Buttons[i].Go = nil
  248. Buttons[i].Gui.Text = "-"
  249. Buttons[i].Img.Image = ""
  250. end
  251. end)
  252. end
  253. end
  254. end
  255. local function OpenOptions(P, x, y)
  256. if Options then Options:remove() end
  257. if P ~= nil then
  258. local Pos = 87
  259. local Siz = 112
  260. if P:IsA("StringValue") then
  261. Siz = 132
  262. Pos = 107
  263. end
  264. local Back = Make("Frame", Main, UD(0, 150, 0, Siz), UD(0, x+3, 0, y+4), C3(0.65, 0.65, 0.8), 0, 0, C3())
  265. local Copy = Make("TextButton", Back, UD(1, -10, 0, 20), UD(0, 5, 0, 5), C3(0.85, 0.85, 0.95), 0, 0, C3(), "Copy", C3())
  266. local Paste = Make("TextButton", Back, UD(1, -10, 0, 20), UD(0, 5, 0, 25), C3(0.85, 0.85, 0.95), 0, 0, C3(), "Paste", C3())
  267. local Delete = Make("TextButton", Back, UD(1, -10, 0, 20), UD(0, 5, 0, 45), C3(0.85, 0.85, 0.95), 0, 0, C3(), "Delete", C3())
  268. local Rename = Make("TextButton", Back, UD(1, -10, 0, 20), UD(0, 5, 0, 65), C3(0.85, 0.85, 0.95), 0, 0, C3(), "Rename", C3())
  269. if P:IsA("StringValue") then
  270. local Read = Make("TextButton", Back, UD(1, -10, 0, 20), UD(0, 5, 0, 85), C3(0.85, 0.85, 0.95), 0, 0, C3(), "Read", C3())
  271. Read.Font = "Arial"
  272. Read.FontSize = "Size12"
  273. Read.TextXAlignment = "Left"
  274. Read.MouseButton1Down:connect(function()
  275. if Options then Options:remove() end
  276. local Text = P.Value
  277. local Lines = {}
  278. local Last = 1
  279. for i = 1, #Text, 1 do
  280. if Text:sub(i,i) == string.char(10) then
  281. local asd = Text:sub(Last, i-1)
  282. asd = asd:gsub(string.char(9), " ")
  283. table.insert(Lines, asd)
  284. Last = i+1
  285. end
  286. end
  287. local asd = Text:sub(Last, #Text)
  288. asd = asd:gsub(string.char(9), " ")
  289. table.insert(Lines, asd)
  290. local MainT = Make("Frame", Main, UD(1, -200, 0, 0), UD(0, 0, 0.5, 0), C3(1, 1, 1), 1, 0, C3())
  291. local DerpGui = Make("ImageButton", Main, UD(1, 0, 1, 0), UD(0, 0, 0, 0), C3(), 1, 0, C3(), nil, nil, "")
  292. DerpGui.Visible = false
  293. local Scroll = Make("Frame", Main, UD(0, 20, 0, Resolution.Y-40), UD(1, -220, 0, 20), C3(0.97, 0.97, 1), 0, 0, C3())
  294. local ButtonUp = Make("ImageButton", Scroll, UD(0, 20, 0, 20), UD(0, 0, 0, -20), C3(0.85, 0.85, 0.9), 0, 0, C3(), nil, nil, "")
  295. local ButtonDown = Make("ImageButton", Scroll, UD(0, 20, 0, 20), UD(0, 0, 1, 0), C3(0.85, 0.85, 0.9), 0, 0, C3(), nil, nil, "")
  296. local ScrollBar = Make("ImageButton", Scroll, UD(1, 0, 0, 150), UD(0, 0, 0, 0), C3(0.75, 0.75, 0.85), 0, 0, C3(), nil, nil, "")
  297. local Texts = {}
  298. for i = 0, Resolution.Y-13, 13 do
  299. local Txt = Make("TextLabel", MainT, UD(1, 0, 0, 13), UD(0, 0, i/Resolution.Y, 0), C3(1, 1, 1), 0, 1, C3(0.9, 0.9, 0.9), "", C3())
  300. Txt.Font = "Arial"
  301. Txt.FontSize = "Size12"
  302. Txt.TextXAlignment = "Left"
  303. table.insert(Texts, Txt)
  304. end
  305. for i, v in pairs(Texts) do
  306. local line = Lines[i]
  307. if line then
  308. v.Text = tostring(line)
  309. end
  310. end
  311. local Normal = UD(0, 0, 0.5, -175)
  312. ExplorerDec:TweenPosition(UD(0, -200, 0.5, -175), nil, nil, 0.5)
  313. MainT:TweenSize(UD(1, -200, 0, Resolution.Y+1))
  314. MainT:TweenPosition(UD(0, 0, 0, -1))
  315. local ScrollPos = 20
  316. local ScrollSize = Resolution.Y-40
  317. local SlideSize = 150
  318. local Point = ScrollPos + ScrollSize
  319. local AllPoint = Point-SlideSize-ScrollPos
  320. ScrollBar.MouseButton1Down:connect(function(x, y)
  321. local pos2 = ScrollBar.Position.Y.Offset-y
  322. DerpGui.Visible = true
  323. local Conn = DerpGui.MouseMoved:connect(function(X, Y)
  324. local pos = Y+pos2
  325. if pos < 0 then pos = 0 end
  326. if pos+SlideSize+ScrollPos > Point then pos = AllPoint end
  327. ScrollBar.Position = UD(0, 0, 0, pos)
  328. local Division = (pos/AllPoint)
  329. local Asd = #Lines-#Texts+5
  330. if Asd > #Lines then Asd = #Lines end
  331. local Placement = math.floor((Asd)*Division)
  332. for i, v in pairs(Texts) do
  333. local Line = Lines[i+Placement]
  334. if Line then
  335. v.Text = Line
  336. else
  337. v.Text = ""
  338. end
  339. end
  340. end)
  341. local co = DerpGui.MouseButton1Up:connect(function()
  342. DerpGui.Visible = false
  343. Conn:disconnect()
  344. co:disconnect()
  345. end)
  346. end)
  347. local Exit = Make("ImageButton", MainT, UD(0, 35, 0, 35), UD(1, -75, 0, 25), C3(), 1, 0, C3(), nil, nil, Icons.Exit)
  348. local c = Exit.MouseButton1Down:connect(function()
  349. Scroll:remove()
  350. Exit:remove()
  351. for _,v in pairs(Texts) do v.Text = "" end
  352. ExplorerDec:TweenPosition(Normal, nil, nil, 0.7)
  353. MainT:TweenSize(UD(0, 0, 0, 0), nil, nil, 0.5)
  354. MainT:TweenPosition(UD(0.5, 0, 0.5, 0), nil, nil, 0.5)
  355. wait(0.5)
  356. MainT:remove()
  357. end)
  358. end)
  359. end
  360. local Cancel = Make("TextButton", Back, UD(1, -10, 0, 20), UD(0, 5, 0, Pos), C3(0.85, 0.85, 0.95), 0, 0, C3(), "Cancel", C3())
  361. Copy.Font = "Arial"
  362. Paste.Font = "Arial"
  363. Delete.Font = "Arial"
  364. Rename.Font = "Arial"
  365. Cancel.Font = "Arial"
  366. Copy.FontSize = "Size12"
  367. Paste.FontSize = "Size12"
  368. Delete.FontSize = "Size12"
  369. Rename.FontSize = "Size12"
  370. Cancel.FontSize = "Size12"
  371. Copy.TextXAlignment = "Left"
  372. Paste.TextXAlignment = "Left"
  373. Delete.TextXAlignment = "Left"
  374. Rename.TextXAlignment = "Left"
  375. Cancel.TextXAlignment = "Left"
  376. Copy.MouseButton1Down:connect(function()
  377. if Options then Options:remove() end
  378. local a = P.archivable
  379. P.archivable = true
  380. Copied = P:clone()
  381. wait()
  382. P.archivable = a
  383. end)
  384. Paste.MouseButton1Down:connect(function()
  385. if Options then Options:remove() end
  386. if Copied then
  387. local clo = Copied:clone()
  388. clo.Parent = P
  389. end
  390. end)
  391. Delete.MouseButton1Down:connect(function()
  392. if Options then Options:remove() end
  393. P:remove()
  394. Update(Place)
  395. end)
  396. Rename.MouseButton1Down:connect(function()
  397. if Options then Options:remove() end
  398. local Sc2 = Instance.new("ScreenGui")
  399. Sc2.Name = "Rename"
  400. Sc2.Parent = gui
  401. local Effect = Make("ImageButton", Sc2, UD(0, 0, 0, 0), UD(0.5, 0, 0.5, 0), C3(0.9, 0.9, 1), 0, 0, C3(), nil, nil, "")
  402. Effect.AutoButtonColor = false
  403. local Writeback = Make("Frame", Sc2, UD(0, 0, 0, 0), UD(0.5, 0, 0.5, 0), C3(0.7, 0.7, 0.9), 0, 0, C3())
  404. local Write = Make("Frame", Writeback, UD(1, -10, 1, -10), UD(0, 5, 0, 5), C3(0.9, 0.9, 0.95), 0, 0, C3())
  405. local TextBar = Make("TextBox", Write, UD(0.8, 0, 0.15, 0), UD(0.1, 0, 0.2, 0), C3(0.5, 0.5, 0.8), 0, 0, C3(), "", C3(1,1,1))
  406. TextBar.FontSize = "Size14"
  407. TextBar.Font = "Arial"
  408. local Ok = Make("TextButton", Write, UD(0.3, 0, 0.17, 0), UD(0.1, 0, 0.5, 0), C3(0.65, 0.65, 0.85), 0, 0, C3(), "Ok", C3(1,1,1))
  409. local Canc = Make("TextButton", Write, UD(0.3, 0, 0.17, 0), UD(0.6, 0, 0.5, 0), C3(0.65, 0.65, 0.85), 0, 0, C3(), "Cancel", C3(1,1,1))
  410. Ok.Font = "ArialBold"
  411. Ok.FontSize = "Size18"
  412. Canc.Font = "ArialBold"
  413. Canc.FontSize = "Size18"
  414. Effect:TweenPosition(UD(0, 0, 0, -1))
  415. Writeback:TweenPosition(UD(0.5, -150, 0.5, -60))
  416. Writeback:TweenSize(UD(0, 300, 0, 120))
  417. Effect:TweenSize(UD(1, 0, 1, 1))
  418. local Normal = UD(0, 0, 0.5, -175)
  419. ExplorerDec:TweenPosition(UD(0, -200, 0.5, -175), nil, nil, 0.4)
  420. local function TweenBack()
  421. Effect:TweenPosition(UD(1, 0, 0.5, 0), nil, nil, 0.5)
  422. Effect:TweenSize(UD(0, 0, 0, 0), nil, nil, 0.5)
  423. Writeback:TweenPosition(UD(1, 0, 0.5, 0), nil, nil, 0.5)
  424. Writeback:TweenSize(UD(0, 0, 0, 0), nil, nil, 0.5)
  425. ExplorerDec:TweenPosition(Normal, nil, nil, 0.5)
  426. Ok.Text = ""
  427. Canc.Text = ""
  428. TextBar.Text = ""
  429. coroutine.resume(coroutine.create(function()
  430. for i = 0, 1, 0.08 do
  431. wait()
  432. Effect.BackgroundTransparency = 0.4+0.7*i
  433. end
  434. Sc2:remove()
  435. end))
  436. end
  437. coroutine.resume(coroutine.create(function()
  438. for i = 0, 1, 0.035 do
  439. wait()
  440. Effect.BackgroundTransparency = 0.4*i
  441. end
  442. end))
  443. Canc.MouseButton1Down:connect(function()
  444. TweenBack()
  445. end)
  446. Ok.MouseButton1Down:connect(function()
  447. coroutine.resume(coroutine.create(function()
  448. local derp = P.archivable
  449. P.archivable = true
  450. P.Name = TextBar.Text
  451. wait()
  452. P.archivable = derp
  453. end))
  454. TweenBack()
  455. Update(Place)
  456. end)
  457. end)
  458. Cancel.MouseButton1Down:connect(function()
  459. if Options then Options:remove() end
  460. end)
  461. Options = Back
  462. end
  463. end
  464. for i,v in pairs(Buttons) do
  465. v.Gui.MouseButton1Down:connect(function()
  466. if v.Go ~= nil then
  467. From = 0
  468. Update(v.Go)
  469. end
  470. end)
  471. v.Gui.MouseButton2Down:connect(function(x, y)
  472. OpenOptions(v.Go, x, y)
  473. end)
  474. end
  475. Home.MouseButton1Down:connect(function()
  476. pcall(function()
  477. From = 0
  478. Update(workspace)
  479. end)
  480. end)
  481. Previous.MouseButton1Down:connect(function()
  482. pcall(function()
  483. From = 0
  484. Update(Place.Parent)
  485. end)
  486. end)
  487. Refresh.MouseButton1Down:connect(function()
  488. pcall(function()
  489. From = 0
  490. Update(Place)
  491. end)
  492. end)
  493. NextPage.MouseButton1Down:connect(function()
  494. pcall(function()
  495. From = From + Seen
  496. Update(Place)
  497. end)
  498. end)
  499. PreviousPage.MouseButton1Down:connect(function()
  500. pcall(function()
  501. From = From - Seen
  502. if From < 0 then From = 0 end
  503. Update(Place)
  504. end)
  505. end)
  506. CopyP.MouseButton1Down:connect(function()
  507. pcall(function()
  508. if Options then Options:remove() end
  509. if Place ~= workspace then
  510. local a = Place.archivable
  511. Place.archivable = true
  512. Copied = Place:clone()
  513. wait()
  514. Place.archivable = a
  515. end
  516. end)
  517. end)
  518. PasteP.MouseButton1Down:connect(function()
  519. pcall(function()
  520. if Options then Options:remove() end
  521. if Copied and Copied ~= workspace then
  522. local clo = Copied:clone()
  523. clo.Parent = Place
  524. Update(Place)
  525. end
  526. end)
  527. end)
  528. DeleteP.MouseButton1Down:connect(function()
  529. pcall(function()
  530. if Options then Options:remove() end
  531. if Place ~= workspace then
  532. local plaic = Place.Parent
  533. if plaic == nil then plaic = workspace end
  534. Place:remove()
  535. Update(plaic)
  536. end
  537. end)
  538. end)
  539. Update(Place)
  540. Sc.Parent = gui
  541. end
  542.  
  543. Give(game.Players.von12222222)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement