Advertisement
ou1z

Untitled

Jun 6th, 2021 (edited)
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.62 KB | None | 0 0
  1. return function(yield,text)
  2.  
  3. local SaveExplorer = Instance.new("ScreenGui")
  4. local Open = Instance.new("Frame")
  5. local Title = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local CurrentDirectory = Instance.new("Frame")
  8. local TextLabel_2 = Instance.new("TextLabel")
  9. local Refresh = Instance.new("ImageButton")
  10. local Bottom = Instance.new("Frame")
  11. local OpenSave = Instance.new("TextButton")
  12. local Cancel = Instance.new("TextButton")
  13. local TextBox = Instance.new("TextBox")
  14. local Selected = Instance.new("TextLabel")
  15. local Explorer = Instance.new("ScrollingFrame")
  16. local Workspace = Instance.new("Frame")
  17. local FolderName = Instance.new("TextLabel")
  18. local FolderImage = Instance.new("ImageLabel")
  19. local Line = Instance.new("Frame")
  20. local List = Instance.new("ScrollingFrame")
  21. local UIListLayout = Instance.new("UIListLayout")
  22. local Back = Instance.new("ImageButton")
  23. local Forward = Instance.new("ImageButton")
  24. local Templates = Instance.new("Folder")
  25. local FileTemplate = Instance.new("Frame")
  26. local FileName = Instance.new("TextLabel")
  27. local FileImage = Instance.new("ImageLabel")
  28. local FolderTemplate = Instance.new("Frame")
  29. local FolderName_2 = Instance.new("TextLabel")
  30. local FolderImage_2 = Instance.new("ImageLabel")
  31.  
  32.  
  33. SaveExplorer.Name = "SaveExplorer"
  34. SaveExplorer.Parent = game.CoreGui
  35. SaveExplorer.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  36.  
  37. Open.Name = "Open"
  38. Open.Parent = SaveExplorer
  39. Open.AnchorPoint = Vector2.new(0.5, 0.5)
  40. Open.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  41. Open.BorderSizePixel = 0
  42. Open.ClipsDescendants = true
  43. Open.Position = UDim2.new(0.5, 0, 0.5, 0)
  44. Open.Size = UDim2.new(0.474999994, 0, 0.460000008, 0)
  45.  
  46. Title.Name = "Title"
  47. Title.Parent = Open
  48. Title.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  49. Title.BorderSizePixel = 0
  50. Title.Size = UDim2.new(1, 0, 0.100000001, 0)
  51.  
  52. TextLabel.Parent = Title
  53. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  54. TextLabel.BackgroundTransparency = 1.000
  55. TextLabel.Position = UDim2.new(0.0356589146, 0, 0.238805965, 0)
  56. TextLabel.Size = UDim2.new(0.336434096, 0, 0.477611929, 0)
  57. TextLabel.Font = Enum.Font.SourceSans
  58. TextLabel.Text = "Save File"
  59. TextLabel.TextColor3 = Color3.fromRGB(230, 230, 230)
  60. TextLabel.TextScaled = true
  61. TextLabel.TextSize = 14.000
  62. TextLabel.TextWrapped = true
  63. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  64.  
  65. CurrentDirectory.Name = "CurrentDirectory"
  66. CurrentDirectory.Parent = Open
  67. CurrentDirectory.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  68. CurrentDirectory.BorderColor3 = Color3.fromRGB(83, 83, 83)
  69. CurrentDirectory.Position = UDim2.new(0.119379871, 0, 0.119402982, 0)
  70. CurrentDirectory.Size = UDim2.new(0.862015426, 0, 0.0776119381, 0)
  71.  
  72. TextLabel_2.Parent = CurrentDirectory
  73. TextLabel_2.AnchorPoint = Vector2.new(0, 0.5)
  74. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  75. TextLabel_2.BackgroundTransparency = 1.000
  76. TextLabel_2.Position = UDim2.new(0.0399999991, 0, 0.5, 0)
  77. TextLabel_2.Size = UDim2.new(0.875899374, 0, 0.5, 0)
  78. TextLabel_2.Font = Enum.Font.SourceSans
  79. TextLabel_2.Text = "Workspace"
  80. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  81. TextLabel_2.TextSize = 14.000
  82. TextLabel_2.TextXAlignment = Enum.TextXAlignment.Left
  83.  
  84. Refresh.Name = "Refresh"
  85. Refresh.Parent = CurrentDirectory
  86. Refresh.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. Refresh.BackgroundTransparency = 1.000
  88. Refresh.Position = UDim2.new(0.941999972, 0, 0.0900000036, 0)
  89. Refresh.Size = UDim2.new(0.0439999998, 0, 0.768999994, 0)
  90. Refresh.Image = "rbxassetid://6919268606"
  91. Refresh.ScaleType = Enum.ScaleType.Fit
  92.  
  93. Bottom.Name = "Bottom"
  94. Bottom.Parent = Open
  95. Bottom.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
  96. Bottom.BorderSizePixel = 0
  97. Bottom.Position = UDim2.new(0, 0, 0.835820913, 0)
  98. Bottom.Size = UDim2.new(1, 0, 0.164179102, 0)
  99.  
  100. OpenSave.Name = "OpenSave"
  101. OpenSave.Parent = Bottom
  102. OpenSave.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  103. OpenSave.BorderColor3 = Color3.fromRGB(181, 181, 181)
  104. OpenSave.Position = UDim2.new(0.689922452, 0, 0.290909111, 0)
  105. OpenSave.Size = UDim2.new(0.13333334, 0, 0.418181807, 0)
  106. OpenSave.Font = Enum.Font.SourceSans
  107. OpenSave.Text = "Save"
  108. OpenSave.TextColor3 = Color3.fromRGB(255, 255, 255)
  109. OpenSave.TextSize = 14.000
  110.  
  111. Cancel.Name = "Cancel"
  112. Cancel.Parent = Bottom
  113. Cancel.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  114. Cancel.BorderColor3 = Color3.fromRGB(181, 181, 181)
  115. Cancel.Position = UDim2.new(0.840310037, 0, 0.290909111, 0)
  116. Cancel.Size = UDim2.new(0.13333334, 0, 0.418181807, 0)
  117. Cancel.Font = Enum.Font.SourceSans
  118. Cancel.Text = "Cancel"
  119. Cancel.TextColor3 = Color3.fromRGB(255, 255, 255)
  120. Cancel.TextSize = 14.000
  121.  
  122. TextBox.Parent = Bottom
  123. TextBox.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
  124. TextBox.BorderColor3 = Color3.fromRGB(156, 156, 156)
  125. TextBox.Position = UDim2.new(0.136977106, 0, 0.30883047, 0)
  126. TextBox.Size = UDim2.new(0.527915537, 0, 0.351575881, 0)
  127. TextBox.Font = Enum.Font.SourceSans
  128. TextBox.Text = ""
  129. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  130. TextBox.TextSize = 14.000
  131.  
  132. Selected.Name = "Selected"
  133. Selected.Parent = Bottom
  134. Selected.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  135. Selected.BackgroundTransparency = 1.000
  136. Selected.BorderColor3 = Color3.fromRGB(27, 42, 53)
  137. Selected.Position = UDim2.new(0.0285984538, 0, 0.329773486, 0)
  138. Selected.Size = UDim2.new(0.0993810669, 0, 0.272727281, 0)
  139. Selected.Font = Enum.Font.SourceSans
  140. Selected.Text = "File Name"
  141. Selected.TextColor3 = Color3.fromRGB(255, 255, 255)
  142. Selected.TextScaled = true
  143. Selected.TextSize = 14.000
  144. Selected.TextWrapped = true
  145. Selected.TextXAlignment = Enum.TextXAlignment.Right
  146.  
  147. Explorer.Name = "Explorer"
  148. Explorer.Parent = Open
  149. Explorer.Active = true
  150. Explorer.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  151. Explorer.BorderSizePixel = 0
  152. Explorer.Position = UDim2.new(0.00310077518, 0, 0.268656731, 0)
  153. Explorer.Size = UDim2.new(0.164341092, 0, 0.567164183, 0)
  154. Explorer.BottomImage = "rbxassetid://6919302039"
  155. Explorer.MidImage = "rbxassetid://6919302039"
  156. Explorer.TopImage = "rbxassetid://6919302039"
  157.  
  158. Workspace.Name = "Workspace"
  159. Workspace.Parent = Explorer
  160. Workspace.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  161. Workspace.BorderSizePixel = 0
  162. Workspace.Size = UDim2.new(0.917358935, 0, 0, 25)
  163.  
  164. FolderName.Name = "FolderName"
  165. FolderName.Parent = Workspace
  166. FolderName.AnchorPoint = Vector2.new(0.5, 0.5)
  167. FolderName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  168. FolderName.BackgroundTransparency = 1.000
  169. FolderName.Position = UDim2.new(0.569999993, 0, 0.5, 0)
  170. FolderName.Size = UDim2.new(0.648000002, 0, 0.600000024, 0)
  171. FolderName.Font = Enum.Font.SourceSans
  172. FolderName.Text = "workspace"
  173. FolderName.TextColor3 = Color3.fromRGB(255, 255, 255)
  174. FolderName.TextScaled = true
  175. FolderName.TextSize = 14.000
  176. FolderName.TextWrapped = true
  177. FolderName.TextXAlignment = Enum.TextXAlignment.Left
  178.  
  179. FolderImage.Name = "FolderImage"
  180. FolderImage.Parent = Workspace
  181. FolderImage.AnchorPoint = Vector2.new(0, 0.5)
  182. FolderImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  183. FolderImage.BackgroundTransparency = 1.000
  184. FolderImage.Position = UDim2.new(0.0370000005, 0, 0.5, 0)
  185. FolderImage.Size = UDim2.new(0.170113266, 0, 0.88499999, 0)
  186. FolderImage.Image = "rbxassetid://6919327844"
  187. FolderImage.ScaleType = Enum.ScaleType.Fit
  188.  
  189. Line.Name = "Line"
  190. Line.Parent = Open
  191. Line.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  192. Line.BorderSizePixel = 0
  193. Line.Position = UDim2.new(0.0029999963, 0, 0.217910439, 0)
  194. Line.Size = UDim2.new(0.164341092, 0, 0.0507462695, 0)
  195.  
  196. List.Name = "List"
  197. List.Parent = Open
  198. List.Active = true
  199. List.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  200. List.BorderSizePixel = 0
  201. List.Position = UDim2.new(0.16744186, 0, 0.217910454, 0)
  202. List.Size = UDim2.new(0.832558155, 0, 0.617910445, 0)
  203. List.BottomImage = "rbxassetid://6919302039"
  204. List.CanvasSize = UDim2.new(0, 0, 0, 0)
  205. List.MidImage = "rbxassetid://6919302039"
  206. List.TopImage = "rbxassetid://6919302039"
  207.  
  208. UIListLayout.Parent = List
  209. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  210.  
  211. Back.Name = "Back"
  212. Back.Parent = Open
  213. Back.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  214. Back.BackgroundTransparency = 1.000
  215. Back.Position = UDim2.new(0.0189999994, 0, 0.128000006, 0)
  216. Back.Size = UDim2.new(0.0340000018, 0, 0.0599999987, 0)
  217. Back.Image = "rbxassetid://6919246937"
  218. Back.ImageColor3 = Color3.fromRGB(140, 140, 140)
  219. Back.ScaleType = Enum.ScaleType.Fit
  220.  
  221. Forward.Name = "Forward"
  222. Forward.Parent = Open
  223. Forward.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  224. Forward.BackgroundTransparency = 1.000
  225. Forward.Position = UDim2.new(0.064000003, 0, 0.128000006, 0)
  226. Forward.Size = UDim2.new(0.0340000018, 0, 0.0599999987, 0)
  227. Forward.Image = "rbxassetid://6919256099"
  228. Forward.ImageColor3 = Color3.fromRGB(140, 140, 140)
  229. Forward.ScaleType = Enum.ScaleType.Fit
  230.  
  231. Templates.Name = "Templates"
  232. Templates.Parent = SaveExplorer
  233.  
  234. FileTemplate.Name = "FileTemplate"
  235. FileTemplate.Parent = Templates
  236. FileTemplate.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  237. FileTemplate.BorderSizePixel = 0
  238. FileTemplate.Size = UDim2.new(1, 0, 0, 25)
  239. FileTemplate.Visible = false
  240.  
  241. FileName.Name = "FileName"
  242. FileName.Parent = FileTemplate
  243. FileName.AnchorPoint = Vector2.new(0.5, 0.5)
  244. FileName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  245. FileName.BackgroundTransparency = 1.000
  246. FileName.Position = UDim2.new(0.516759753, 0, 0.5, 0)
  247. FileName.Size = UDim2.new(0.865999997, 0, 0.699999988, 0)
  248. FileName.Font = Enum.Font.SourceSans
  249. FileName.Text = "file.lua"
  250. FileName.TextColor3 = Color3.fromRGB(255, 255, 255)
  251. FileName.TextScaled = true
  252. FileName.TextSize = 14.000
  253. FileName.TextWrapped = true
  254. FileName.TextXAlignment = Enum.TextXAlignment.Left
  255.  
  256. FileImage.Name = "FileImage"
  257. FileImage.Parent = FileTemplate
  258. FileImage.AnchorPoint = Vector2.new(0, 0.5)
  259. FileImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  260. FileImage.BackgroundTransparency = 1.000
  261. FileImage.Position = UDim2.new(0.0219999999, 0, 0.5, 0)
  262. FileImage.Size = UDim2.new(0.045996286, 0, 0.839999974, 0)
  263. FileImage.Image = "rbxassetid://6919336404"
  264. FileImage.ScaleType = Enum.ScaleType.Fit
  265.  
  266. FolderTemplate.Name = "FolderTemplate"
  267. FolderTemplate.Parent = Templates
  268. FolderTemplate.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  269. FolderTemplate.BorderSizePixel = 0
  270. FolderTemplate.Size = UDim2.new(1, 0, 0, 25)
  271. FolderTemplate.Visible = false
  272.  
  273. FolderName_2.Name = "FolderName"
  274. FolderName_2.Parent = FolderTemplate
  275. FolderName_2.AnchorPoint = Vector2.new(0.5, 0.5)
  276. FolderName_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  277. FolderName_2.BackgroundTransparency = 1.000
  278. FolderName_2.Position = UDim2.new(0.516759753, 0, 0.5, 0)
  279. FolderName_2.Size = UDim2.new(0.865999997, 0, 0.699999988, 0)
  280. FolderName_2.Font = Enum.Font.SourceSans
  281. FolderName_2.Text = "folder"
  282. FolderName_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  283. FolderName_2.TextScaled = true
  284. FolderName_2.TextSize = 14.000
  285. FolderName_2.TextWrapped = true
  286. FolderName_2.TextXAlignment = Enum.TextXAlignment.Left
  287.  
  288. FolderImage_2.Name = "FolderImage"
  289. FolderImage_2.Parent = FolderTemplate
  290. FolderImage_2.AnchorPoint = Vector2.new(0, 0.5)
  291. FolderImage_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  292. FolderImage_2.BackgroundTransparency = 1.000
  293. FolderImage_2.Position = UDim2.new(0.0280000009, 0, 0.5, 0)
  294. FolderImage_2.Size = UDim2.new(0.0348231085, 0, 0.769999981, 0)
  295. FolderImage_2.Image = "rbxassetid://6919327844"
  296. FolderImage_2.ScaleType = Enum.ScaleType.Fit
  297.  
  298. -- Scripts:
  299.  
  300. local function SFQWW_fake_script() -- SaveExplorer.LocalScript
  301.     local script = Instance.new('LocalScript', SaveExplorer)
  302.  
  303.     script.Parent.Open:TweenSize(UDim2.new(0.49, 0,0.488, 0),'In','Linear',0.5,true)
  304. end
  305. coroutine.wrap(SFQWW_fake_script)()
  306.  
  307.  
  308.  
  309. do
  310.     listfiles = listfiles or function() return {} end
  311.     isfile = isfile or function() return false end
  312.     isfolder = isfolder or function() return false end 
  313. end
  314.  
  315.  
  316. local Open = SaveExplorer.Open
  317.  
  318. local CurrentDirectory = Open.CurrentDirectory -- Will show the current file directory path.
  319. local Bottom = Open.Bottom -- Incases the open (open the selected file), and cancel button
  320. local FileList = Open.List -- Where all of the files will be displayed
  321.  
  322. local SelectedFiles = {}
  323.  
  324.  
  325. function filetree(f)
  326.     local files = listfiles(f or '/')
  327.     local contents = {}
  328.     for i,v in pairs(files) do
  329.         if isfile(v) then
  330.             contents[v] =  {
  331.                 Name = v,
  332.                 Type = 'File'
  333.             }
  334.         elseif isfolder(v) then
  335.             contents[v] = {
  336.                 Name = v,
  337.                 Type = 'Folder',
  338.                 Contents = filetree(v)
  339.             }
  340.         end
  341.     end
  342.     return contents
  343. end
  344.  
  345. local TemplateCache = {}
  346.  
  347. local Directory = "/"
  348. local LastDirectory = "/"
  349. local NextDirectory = "/"
  350.  
  351. function Refresh(f)
  352.     for _, template in pairs(TemplateCache) do
  353.         template:Destroy()
  354.     end
  355.  
  356.     Directory = f and f or '/'
  357.     SelectedFiles = {}
  358.     Bottom.Selected.Text = '0 Files Selected'
  359.  
  360.     local files = filetree(f)
  361.     for i,v in pairs(files) do
  362.             --[[
  363.                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  364.                 if v is a file then:
  365.                     v = {
  366.                         Name = <string> (file name),
  367.                         Type = "File" (file type)
  368.                     }
  369.                 else if v is a folder then:
  370.                     v = {
  371.                         Name = <string> (file name),
  372.                         Type = "Folder" (file type),
  373.                         Contents = <table> { ... }
  374.                     }
  375.                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  376.             ]]
  377.  
  378.         local FileName = v.Name
  379.  
  380.  
  381.         if f and isfolder(f) then
  382.             local sp = FileName:split('\\')
  383.             FileName = sp[#sp]
  384.         end
  385.  
  386.         local template
  387.  
  388.         local function hover()
  389.             if not table.find(SelectedFiles, FileName) then  
  390.                 game:GetService('TweenService'):Create(template, TweenInfo.new(0.1), {BackgroundColor3 = Color3.fromRGB(59, 59, 59)}):Play()       
  391.             end
  392.         end
  393.         local function unhover(bool)
  394.             if not table.find(SelectedFiles, v.Name) or bool then  
  395.                 game:GetService('TweenService'):Create(template, TweenInfo.new(0.1), {BackgroundColor3 = Color3.fromRGB(32, 32, 32)}):Play()               
  396.             end
  397.         end
  398.         local function selectfile()
  399.             if table.find(SelectedFiles, v.Name) then -- Unselect --   
  400.                 table.remove(SelectedFiles, table.find(SelectedFiles, v.Name))
  401.                 unhover(true)
  402.             else -- Select --
  403.                 SelectedFiles = {}
  404.                 for i,v in pairs(TemplateCache) do
  405.                     if v.BackgroundColor3 ~= Color3.fromRGB(32, 32, 32) and v ~= template then
  406.                         game:GetService('TweenService'):Create(v, TweenInfo.new(0.1), {BackgroundColor3 = Color3.fromRGB(32, 32, 32)}):Play()              
  407.                     end                
  408.                 end
  409.  
  410.                 table.insert(SelectedFiles, v.Name)
  411.                 game:GetService('TweenService'):Create(template, TweenInfo.new(0.1), {BackgroundColor3 = Color3.fromRGB(107, 107, 107)}):Play()
  412.             end
  413.             local Grammar = '1 File Selected'
  414.             Bottom.OpenSave.Text = 'Open'
  415.             local Amount = #SelectedFiles
  416.  
  417.             if Amount > 1 then
  418.                 Grammar = string.format('%s Files Selected', Amount)
  419.                 Bottom.OpenSave.Text = 'Open'
  420.             elseif Amount <= 0 then
  421.                 Grammar = 'No Files Selected'
  422.                 Bottom.OpenSave.Text = 'Save'
  423.             end
  424.  
  425.             Bottom.Selected.Text = Grammar
  426.         end
  427.  
  428.         if v.Type == "Folder" then
  429.             template = SaveExplorer.Templates.FolderTemplate:Clone()
  430.             template.Name = v.Name
  431.             template.FolderName.Text = FileName
  432.             template.Parent = FileList
  433.             template.Visible = true
  434.             table.insert(TemplateCache,template)
  435.         elseif v.Type == "File" then
  436.             template = SaveExplorer.Templates.FileTemplate:Clone()
  437.             template.Name = v.Name
  438.             template.FileName.Text = FileName
  439.             template.Parent  = FileList
  440.             template.Visible = true
  441.             table.insert(TemplateCache,template)
  442.         end
  443.  
  444.         template.MouseEnter:Connect(function()
  445.             hover(false)
  446.         end)
  447.         template.MouseLeave:Connect(function()
  448.             unhover(false)
  449.         end)
  450.         template.InputBegan:Connect(function(key,gpe)
  451.             if key.UserInputType == Enum.UserInputType.MouseButton1 then
  452.                 selectfile()
  453.             end
  454.         end)
  455.  
  456.     end
  457.  
  458.     FileList.CanvasSize = UDim2.new(0, 0, 0, 50 * (#FileList:GetChildren() - 1))
  459.     CurrentDirectory.TextLabel.Text = f and 'Workspace'..f or 'Workspace'
  460. end
  461. local done = false
  462. local content = ""
  463.  
  464. Bottom.OpenSave.MouseButton1Click:Connect(function()
  465.     local Selected = SelectedFiles[1]
  466.     if not Selected then
  467.         writefile(Directory .. '/' .. Bottom.TextBox.Text, text)
  468.         Open:TweenSize(UDim2.new(0,0,0,0),'Out','Linear',0.1,true,function()
  469.             SaveExplorer:Destroy()
  470.         end)   
  471.     return end
  472.  
  473.     if isfolder(Selected) then
  474.         LastDirectory = Directory
  475.         Directory = Selected
  476.         Refresh(Selected)
  477.     end
  478. end)
  479.  
  480. Open.Back.MouseButton1Click:Connect(function()
  481.     NextDirectory = Directory
  482.     Refresh(LastDirectory)
  483. end)
  484. Open.Forward.MouseButton1Click:Connect(function()
  485.     print(NextDirectory)
  486.     Refresh(NextDirectory)
  487. end)
  488. Bottom.Cancel.MouseButton1Click:Connect(function()
  489.     Open:TweenSize(UDim2.new(0,0,0,0),'Out','Linear',0.1,true,function()
  490.         SaveExplorer:Destroy()
  491.     end)
  492.     done = true
  493. end)
  494.  
  495.  
  496. CurrentDirectory.Refresh.MouseButton1Click:Connect(Refresh)
  497. Refresh()
  498.  
  499. if yield ~= false then
  500.     repeat wait() until done
  501. end
  502. return content
  503.  
  504. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement