Advertisement
kill21_2

мини мап с чек поинтами

Apr 29th, 2025 (edited)
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.10 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local UserInputService = game:GetService("UserInputService")
  3. local TweenService = game:GetService("TweenService")
  4. local RunService = game:GetService("RunService")
  5.  
  6. local player = Players.LocalPlayer
  7.  
  8. -- Цветовая палитра
  9. local colors = {
  10. background = Color3.fromRGB(30, 30, 46),
  11. header = Color3.fromRGB(49, 50, 68),
  12. button = Color3.fromRGB(69, 71, 90),
  13. buttonHover = Color3.fromRGB(88, 91, 112),
  14. accent = Color3.fromRGB(137, 180, 250),
  15. text = Color3.fromRGB(240, 240, 255), -- Более белый текст
  16. close = Color3.fromRGB(243, 139, 168),
  17. waypoint = Color3.fromRGB(166, 227, 161)
  18. }
  19.  
  20. -- Создаем GUI
  21. local gui = Instance.new("ScreenGui")
  22. gui.Name = "EnhancedMiniMap"
  23. gui.ResetOnSpawn = false
  24. gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  25. gui.Parent = player:WaitForChild("PlayerGui")
  26.  
  27. -- Основной фрейм карты
  28. local mapFrame = Instance.new("Frame")
  29. mapFrame.Name = "MiniMap"
  30. mapFrame.Size = UDim2.new(0.25, 0, 0.35, 0)
  31. mapFrame.Position = UDim2.new(0.02, -50, 0.6, 0)
  32. mapFrame.BackgroundColor3 = colors.background
  33. mapFrame.BackgroundTransparency = 1
  34. mapFrame.ClipsDescendants = true
  35. mapFrame.Parent = gui
  36.  
  37. -- Скругление углов
  38. local corner = Instance.new("UICorner")
  39. corner.CornerRadius = UDim.new(0, 0)
  40. corner.Parent = mapFrame
  41.  
  42. -- Тень
  43. local shadow = Instance.new("ImageLabel")
  44. shadow.Name = "Shadow"
  45. shadow.Image = "rbxassetid://1316045217"
  46. shadow.ImageColor3 = Color3.new(0, 0, 0)
  47. shadow.ImageTransparency = 1
  48. shadow.ScaleType = Enum.ScaleType.Slice
  49. shadow.SliceCenter = Rect.new(10, 10, 118, 118)
  50. shadow.Size = UDim2.new(1, 20, 1, 20)
  51. shadow.Position = UDim2.new(0, -10, 0, -10)
  52. shadow.BackgroundTransparency = 1
  53. shadow.Parent = mapFrame
  54. shadow.ZIndex = -1
  55.  
  56. -- Заголовок
  57. local header = Instance.new("TextButton") -- Изменено на TextButton для перетаскивания
  58. header.Name = "Header"
  59. header.Size = UDim2.new(1, 0, 0.12, 0)
  60. header.Position = UDim2.new(0, 0, 0, -50)
  61. header.BackgroundColor3 = colors.header
  62. header.BackgroundTransparency = 1
  63. header.Text = ""
  64. header.AutoButtonColor = false
  65. header.Parent = mapFrame
  66.  
  67. local headerCorner = Instance.new("UICorner")
  68. headerCorner.CornerRadius = UDim.new(0, 0)
  69. headerCorner.Parent = header
  70.  
  71. -- Текст заголовка
  72. local title = Instance.new("TextLabel")
  73. title.Name = "Title"
  74. title.Size = UDim2.new(0.7, 0, 1, 0)
  75. title.Position = UDim2.new(0.15, 0, 0, 0)
  76. title.Text = "МИНИ-КАРТА"
  77. title.TextColor3 = colors.text
  78. title.TextSize = 16
  79. title.Font = Enum.Font.GothamBold
  80. title.TextTransparency = 1
  81. title.BackgroundTransparency = 1
  82. title.Parent = header
  83.  
  84. -- Кнопка закрытия (теперь это ImageButton)
  85. local closeButton = Instance.new("ImageButton")
  86. closeButton.Name = "CloseButton"
  87. closeButton.Size = UDim2.new(0.1, 0, 1, 0)
  88. closeButton.Position = UDim2.new(0.9, 0, 0, 0)
  89. closeButton.Image = "rbxassetid://3926305904"
  90. closeButton.ImageRectOffset = Vector2.new(284, 4)
  91. closeButton.ImageRectSize = Vector2.new(24, 24)
  92. closeButton.ImageColor3 = colors.close
  93. closeButton.ImageTransparency = 1
  94. closeButton.BackgroundTransparency = 1
  95. closeButton.Parent = header
  96.  
  97. -- Контейнер для точек
  98. local pointsContainer = Instance.new("ScrollingFrame")
  99. pointsContainer.Name = "PointsContainer"
  100. pointsContainer.Size = UDim2.new(1, -10, 0.65, 0)
  101. pointsContainer.Position = UDim2.new(0, 5, 0.15, 0)
  102. pointsContainer.BackgroundTransparency = 1
  103. pointsContainer.ScrollBarThickness = 4
  104. pointsContainer.ScrollBarImageColor3 = colors.accent
  105. pointsContainer.CanvasSize = UDim2.new(0, 0, 0, 0)
  106. pointsContainer.ScrollingDirection = Enum.ScrollingDirection.Y
  107. pointsContainer.Parent = mapFrame
  108. pointsContainer.ScrollBarImageTransparency = 1
  109.  
  110. local pointsLayout = Instance.new("UIListLayout")
  111. pointsLayout.Padding = UDim.new(0, 8)
  112. pointsLayout.Parent = pointsContainer
  113.  
  114. -- Таблица для хранения точек
  115. local waypoints = {}
  116.  
  117. -- Функция обновления размера контейнера
  118. local function updateContainerSize()
  119. pointsContainer.CanvasSize = UDim2.new(0, 0, 0, pointsLayout.AbsoluteContentSize.Y)
  120. end
  121.  
  122. pointsLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(updateContainerSize)
  123.  
  124. -- Функция создания анимированной кнопки (ИСПРАВЛЕННАЯ ВЕРСИЯ)
  125. local function createAnimatedButton(name, parent, color)
  126. -- Основная кнопка (теперь TextButton)
  127. local button = Instance.new("TextButton")
  128. button.Name = name
  129. button.Size = UDim2.new(1, 0, 0, 45)
  130. button.BackgroundTransparency = 1
  131. button.Text = ""
  132. button.AutoButtonColor = false
  133. button.Parent = parent
  134.  
  135. -- Внутренний фон кнопки
  136. local buttonBg = Instance.new("Frame")
  137. buttonBg.Name = "Background"
  138. buttonBg.Size = UDim2.new(1, 0, 1, 0)
  139. buttonBg.Position = UDim2.new(0, 0, 0, 0)
  140. buttonBg.BackgroundColor3 = color or colors.button
  141. buttonBg.BackgroundTransparency = 1
  142. buttonBg.Parent = button
  143.  
  144. local buttonCorner = Instance.new("UICorner")
  145. buttonCorner.CornerRadius = UDim.new(0, 8)
  146. buttonCorner.Parent = buttonBg
  147.  
  148. local buttonStroke = Instance.new("UIStroke")
  149. buttonStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  150. buttonStroke.Color = colors.accent
  151. buttonStroke.Transparency = 1
  152. buttonStroke.Thickness = 1
  153. buttonStroke.Parent = buttonBg
  154.  
  155. -- Текст кнопки
  156. local buttonTitle = Instance.new("TextLabel")
  157. buttonTitle.Name = "Title"
  158. buttonTitle.Size = UDim2.new(0.8, 0, 0.8, 0)
  159. buttonTitle.Position = UDim2.new(0.1, 0, 0.1, 0)
  160. buttonTitle.Text = name
  161. buttonTitle.TextColor3 = colors.text
  162. buttonTitle.TextSize = 14
  163. buttonTitle.Font = Enum.Font.GothamMedium
  164. buttonTitle.TextXAlignment = Enum.TextXAlignment.Left
  165. buttonTitle.BackgroundTransparency = 1
  166. buttonTitle.TextTransparency = 1
  167. buttonTitle.Parent = buttonBg
  168.  
  169. -- Иконка кнопки
  170. local buttonIcon = Instance.new("ImageLabel")
  171. buttonIcon.Name = "Icon"
  172. buttonIcon.Size = UDim2.new(0, 20, 0, 20)
  173. buttonIcon.Position = UDim2.new(0.85, 0, 0.5, -10)
  174. buttonIcon.Image = "rbxassetid://3926305904"
  175. buttonIcon.ImageRectOffset = Vector2.new(324, 364)
  176. buttonIcon.ImageRectSize = Vector2.new(16, 16)
  177. buttonIcon.ImageColor3 = colors.text
  178. buttonIcon.ImageTransparency = 1
  179. buttonIcon.BackgroundTransparency = 1
  180. buttonIcon.Parent = buttonBg
  181.  
  182. -- Анимация появления
  183. local bgTween = TweenService:Create(buttonBg, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {BackgroundTransparency = 0})
  184. local textTween = TweenService:Create(buttonTitle, TweenInfo.new(0.7, Enum.EasingStyle.Quint), {TextTransparency = 0})
  185. local iconTween = TweenService:Create(buttonIcon, TweenInfo.new(0.8, Enum.EasingStyle.Quint), {ImageTransparency = 0.5})
  186. local strokeTween = TweenService:Create(buttonStroke, TweenInfo.new(0.6, Enum.EasingStyle.Quint), {Transparency = 0.7})
  187.  
  188. task.spawn(function()
  189. bgTween:Play()
  190. task.wait(0.1)
  191. textTween:Play()
  192. strokeTween:Play()
  193. task.wait(0.1)
  194. iconTween:Play()
  195. end)
  196.  
  197. -- Анимация наведения
  198. button.MouseEnter:Connect(function()
  199. TweenService:Create(buttonBg, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {
  200. BackgroundColor3 = colors.buttonHover,
  201. Size = UDim2.new(1, 5, 1, 5),
  202. Position = UDim2.new(0, -2.5, 0, -2.5)
  203. }):Play()
  204.  
  205. TweenService:Create(buttonIcon, TweenInfo.new(0.3, Enum.EasingStyle.Back), {
  206. ImageTransparency = 0,
  207. Rotation = 360
  208. }):Play()
  209. end)
  210.  
  211. button.MouseLeave:Connect(function()
  212. TweenService:Create(buttonBg, TweenInfo.new(0.3, Enum.EasingStyle.Quad), {
  213. BackgroundColor3 = color or colors.button,
  214. Size = UDim2.new(1, 0, 1, 0),
  215. Position = UDim2.new(0, 0, 0, 0)
  216. }):Play()
  217.  
  218. TweenService:Create(buttonIcon, TweenInfo.new(0.3, Enum.EasingStyle.Back), {
  219. ImageTransparency = 0.5,
  220. Rotation = 0
  221. }):Play()
  222. end)
  223.  
  224. -- Эффект нажатия
  225. local clickEffect = Instance.new("Frame")
  226. clickEffect.Name = "ClickEffect"
  227. clickEffect.Size = UDim2.new(0, 0, 0, 0)
  228. clickEffect.Position = UDim2.new(0.5, 0, 0.5, 0)
  229. clickEffect.BackgroundColor3 = Color3.new(1, 1, 1)
  230. clickEffect.BackgroundTransparency = 0.8
  231. clickEffect.BorderSizePixel = 0
  232. clickEffect.Parent = buttonBg
  233. clickEffect.ZIndex = 5
  234.  
  235. local effectCorner = Instance.new("UICorner")
  236. effectCorner.CornerRadius = UDim.new(1, 0)
  237. effectCorner.Parent = clickEffect
  238.  
  239. button.MouseButton1Down:Connect(function()
  240. clickEffect.Size = UDim2.new(0, 0, 0, 0)
  241. clickEffect.Position = UDim2.new(0.5, 0, 0.5, 0)
  242. clickEffect.BackgroundTransparency = 0.8
  243.  
  244. TweenService:Create(clickEffect, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  245. Size = UDim2.new(2, 0, 2, 0),
  246. Position = UDim2.new(-0.5, 0, -0.5, 0),
  247. BackgroundTransparency = 1
  248. }):Play()
  249. end)
  250.  
  251. return button, buttonBg
  252. end
  253.  
  254. -- Функция добавления точки телепортации
  255. local function addWaypoint(name, position, color)
  256. local button, buttonBg = createAnimatedButton(name, pointsContainer, color or colors.waypoint)
  257.  
  258. button.MouseButton1Click:Connect(function()
  259. -- Анимация нажатия
  260. TweenService:Create(buttonBg, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {
  261. BackgroundColor3 = colors.accent
  262. }):Play()
  263.  
  264. -- Телепортация с задержкой
  265. task.delay(0.3, function()
  266. local character = player.Character
  267. if character and character:FindFirstChild("HumanoidRootPart") then
  268. character.HumanoidRootPart.CFrame = CFrame.new(position)
  269.  
  270. -- Эффект телепортации
  271. local teleportEffect = Instance.new("Frame")
  272. teleportEffect.Size = UDim2.new(1, 10, 0, 3)
  273. teleportEffect.Position = UDim2.new(0, -5, 1, 0)
  274. teleportEffect.BackgroundColor3 = colors.accent
  275. teleportEffect.BorderSizePixel = 0
  276. teleportEffect.Parent = buttonBg
  277.  
  278. local teleportCorner = Instance.new("UICorner")
  279. teleportCorner.CornerRadius = UDim.new(0, 2)
  280. teleportCorner.Parent = teleportEffect
  281.  
  282. TweenService:Create(teleportEffect, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  283. BackgroundTransparency = 1
  284. }):Play()
  285.  
  286. game.Debris:AddItem(teleportEffect, 0.5)
  287. end
  288. end)
  289.  
  290. -- Возврат цвета
  291. task.delay(0.5, function()
  292. TweenService:Create(buttonBg, TweenInfo.new(0.3, Enum.EasingStyle.Quad), {
  293. BackgroundColor3 = color or colors.waypoint
  294. }):Play()
  295. end)
  296. end)
  297.  
  298. table.insert(waypoints, {
  299. name = name,
  300. position = position,
  301. button = button
  302. })
  303.  
  304. updateContainerSize()
  305. end
  306.  
  307. -- Функция удаления точки
  308. local function removeWaypoint(name)
  309. for i, wp in ipairs(waypoints) do
  310. if wp.name == name then
  311. -- Анимация удаления
  312. TweenService:Create(wp.button, TweenInfo.new(0.3, Enum.EasingStyle.Quad), {
  313. BackgroundTransparency = 1,
  314. Size = UDim2.new(0, 0, 0, 0)
  315. }):Play()
  316.  
  317. task.delay(0.3, function()
  318. wp.button:Destroy()
  319. table.remove(waypoints, i)
  320. updateContainerSize()
  321. end)
  322. break
  323. end
  324. end
  325. end
  326.  
  327. -- Панель управления
  328. local controlPanel = Instance.new("Frame")
  329. controlPanel.Name = "ControlPanel"
  330. controlPanel.Size = UDim2.new(1, -10, 0.1, 0)
  331. controlPanel.Position = UDim2.new(0, 5, 0.85, 0)
  332. controlPanel.BackgroundTransparency = 1
  333. controlPanel.Parent = mapFrame
  334.  
  335. -- Кнопка добавления
  336. local addButton, addButtonBg = createAnimatedButton("Добавить точку", controlPanel, colors.accent)
  337. addButton.Size = UDim2.new(0.48, 0, 1, 0)
  338. addButton.Position = UDim2.new(0, 0, 0, 0)
  339. addButtonBg.Title.Text = "Добавить"
  340.  
  341. addButton.MouseButton1Click:Connect(function()
  342. local character = player.Character
  343. if character and character:FindFirstChild("HumanoidRootPart") then
  344. local pointName = "Точка " .. (#waypoints + 1)
  345. addWaypoint(pointName, character.HumanoidRootPart.Position)
  346.  
  347. -- Анимация подтверждения
  348. TweenService:Create(addButtonBg, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {
  349. BackgroundColor3 = colors.waypoint
  350. }):Play()
  351.  
  352. task.delay(0.5, function()
  353. TweenService:Create(addButtonBg, TweenInfo.new(0.3, Enum.EasingStyle.Quad), {
  354. BackgroundColor3 = colors.accent
  355. }):Play()
  356. end)
  357. end
  358. end)
  359.  
  360. -- Кнопка удаления
  361. local removeButton, removeButtonBg = createAnimatedButton("Удалить точку", controlPanel, colors.close)
  362. removeButton.Size = UDim2.new(0.48, 0, 1, 0)
  363. removeButton.Position = UDim2.new(0.52, 0, 0, 0)
  364. removeButtonBg.Title.Text = "Удалить"
  365.  
  366. removeButton.MouseButton1Click:Connect(function()
  367. if #waypoints > 0 then
  368. removeWaypoint(waypoints[#waypoints].name)
  369.  
  370. -- Анимация подтверждения
  371. TweenService:Create(removeButtonBg, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {
  372. BackgroundColor3 = Color3.new(0.5, 0, 0)
  373. }):Play()
  374.  
  375. task.delay(0.5, function()
  376. TweenService:Create(removeButtonBg, TweenInfo.new(0.3, Enum.EasingStyle.Quad), {
  377. BackgroundColor3 = colors.close
  378. }):Play()
  379. end)
  380. end
  381. end)
  382.  
  383. -- Анимации появления интерфейса
  384. local showTween = TweenService:Create(mapFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  385. Position = UDim2.new(0.02, 0, 0.6, 0),
  386. BackgroundTransparency = 0.15
  387. })
  388.  
  389. local cornerTween = TweenService:Create(corner, TweenInfo.new(0.7, Enum.EasingStyle.Quint), {
  390. CornerRadius = UDim.new(0, 12)
  391. })
  392.  
  393. local shadowTween = TweenService:Create(shadow, TweenInfo.new(0.8, Enum.EasingStyle.Quint), {
  394. ImageTransparency = 0.8,
  395. Size = UDim2.new(1, 10, 1, 10),
  396. Position = UDim2.new(0, -5, 0, -5)
  397. })
  398.  
  399. local headerTween = TweenService:Create(header, TweenInfo.new(0.6, Enum.EasingStyle.Back), {
  400. Position = UDim2.new(0, 0, 0, 0),
  401. BackgroundTransparency = 0
  402. })
  403.  
  404. local titleTween = TweenService:Create(title, TweenInfo.new(0.8, Enum.EasingStyle.Quint), {
  405. TextTransparency = 0
  406. })
  407.  
  408. local closeTween = TweenService:Create(closeButton, TweenInfo.new(0.8, Enum.EasingStyle.Quint), {
  409. ImageTransparency = 0
  410. })
  411.  
  412. local scrollTween = TweenService:Create(pointsContainer, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  413. ScrollBarImageTransparency = 0.3
  414. })
  415.  
  416. -- Запуск анимаций
  417. task.delay(0.1, function()
  418. showTween:Play()
  419. cornerTween:Play()
  420.  
  421. task.delay(0.2, function()
  422. shadowTween:Play()
  423. headerTween:Play()
  424.  
  425. task.delay(0.2, function()
  426. titleTween:Play()
  427. closeTween:Play()
  428.  
  429. task.delay(0.5, function()
  430. scrollTween:Play()
  431.  
  432. -- Добавляем начальные точки
  433. task.delay(0.5, function()
  434. addWaypoint("Главный спавн", Vector3.new(0, 5, 0), colors.accent)
  435. task.delay(0.2, function()
  436. addWaypoint("Арена битв", Vector3.new(50, 10, 50), colors.close)
  437. task.delay(0.2, function()
  438. addWaypoint("Магазин", Vector3.new(-30, 5, 40), colors.waypoint)
  439. end)
  440. end)
  441. end)
  442. end)
  443. end)
  444. end)
  445. end)
  446.  
  447. -- Перемещение GUI
  448. local dragging, dragInput, dragStart, startPos
  449.  
  450. header.InputBegan:Connect(function(input)
  451. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  452. dragging = true
  453. dragStart = input.Position
  454. startPos = mapFrame.Position
  455.  
  456. input.Changed:Connect(function()
  457. if input.UserInputState == Enum.UserInputState.End then
  458. dragging = false
  459. end
  460. end)
  461. end
  462. end)
  463.  
  464. header.InputChanged:Connect(function(input)
  465. if input.UserInputType == Enum.UserInputType.MouseMovement then
  466. dragInput = input
  467. end
  468. end)
  469.  
  470. UserInputService.InputChanged:Connect(function(input)
  471. if input == dragInput and dragging then
  472. local delta = input.Position - dragStart
  473. mapFrame.Position = UDim2.new(
  474. startPos.X.Scale,
  475. startPos.X.Offset + delta.X,
  476. startPos.Y.Scale,
  477. startPos.Y.Offset + delta.Y
  478. )
  479. end
  480. end)
  481.  
  482. -- Сворачивание/разворачивание
  483. local isVisible = true
  484.  
  485. closeButton.MouseButton1Click:Connect(function()
  486. isVisible = not isVisible
  487.  
  488. if isVisible then
  489. -- Анимация появления
  490. mapFrame.Visible = true
  491. closeButton.Image = "rbxassetid://3926305904"
  492. closeButton.ImageRectOffset = Vector2.new(284, 4)
  493.  
  494. showTween:Play()
  495. cornerTween:Play()
  496. task.delay(0.2, function()
  497. shadowTween:Play()
  498. headerTween:Play()
  499. task.delay(0.2, function()
  500. titleTween:Play()
  501. closeTween:Play()
  502. end)
  503. end)
  504. else
  505. -- Анимация исчезновения
  506. local hideTween = TweenService:Create(mapFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  507. Position = UDim2.new(0.02, -50, 0.6, 0),
  508. BackgroundTransparency = 1
  509. })
  510.  
  511. local cornerHide = TweenService:Create(corner, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  512. CornerRadius = UDim.new(0, 0)
  513. })
  514.  
  515. local shadowHide = TweenService:Create(shadow, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  516. ImageTransparency = 1,
  517. Size = UDim2.new(1, 20, 1, 20),
  518. Position = UDim2.new(0, -10, 0, -10)
  519. })
  520.  
  521. local headerHide = TweenService:Create(header, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  522. Position = UDim2.new(0, 0, 0, -50),
  523. BackgroundTransparency = 1
  524. })
  525.  
  526. local titleHide = TweenService:Create(title, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  527. TextTransparency = 1
  528. })
  529.  
  530. local closeHide = TweenService:Create(closeButton, TweenInfo.new(0.5, Enum.EasingStyle.Quint), {
  531. ImageTransparency = 1
  532. })
  533.  
  534. closeHide:Play()
  535. titleHide:Play()
  536. headerHide:Play()
  537. shadowHide:Play()
  538. cornerHide:Play()
  539. hideTween:Play()
  540.  
  541. task.delay(0.5, function()
  542. mapFrame.Visible = false
  543.  
  544. -- Кнопка для повторного открытия
  545. local reopenButton = Instance.new("ImageButton")
  546. reopenButton.Name = "ReopenButton"
  547. reopenButton.Size = UDim2.new(0, 40, 0, 40)
  548. reopenButton.Position = UDim2.new(0.02, 0, 0.6, 0)
  549. reopenButton.Image = "rbxassetid://3926305904"
  550. reopenButton.ImageRectOffset = Vector2.new(84, 44)
  551. reopenButton.ImageRectSize = Vector2.new(36, 36)
  552. reopenButton.ImageColor3 = colors.accent
  553. reopenButton.BackgroundTransparency = 1
  554. reopenButton.Parent = gui
  555.  
  556. local reopenCorner = Instance.new("UICorner")
  557. reopenCorner.CornerRadius = UDim.new(0, 8)
  558. reopenCorner.Parent = reopenButton
  559.  
  560. reopenButton.MouseButton1Click:Connect(function()
  561. isVisible = true
  562. reopenButton:Destroy()
  563. closeButton.Image = "rbxassetid://3926305904"
  564. closeButton.ImageRectOffset = Vector2.new(284, 4)
  565. mapFrame.Visible = true
  566.  
  567. showTween:Play()
  568. cornerTween:Play()
  569. task.delay(0.2, function()
  570. shadowTween:Play()
  571. headerTween:Play()
  572. task.delay(0.2, function()
  573. titleTween:Play()
  574. closeTween:Play()
  575. end)
  576. end)
  577. end)
  578. end)
  579. end
  580. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement