3rlilxr

S37 | تجمع سكربتات سالي (Составление сценариев)

Apr 22nd, 2025
108
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.14 KB | None | 1 0
  1. --[[
  2. 🌸 Sally Scripts 🌸
  3. Developed by Sally S37©
  4. Final version with:
  5. - Quiet mode with custom sound
  6. - Circular image above quiet mode exit button
  7. ]]
  8.  
  9. local Players = game:GetService("Players")
  10. local UserInputService = game:GetService("UserInputService")
  11. local TweenService = game:GetService("TweenService")
  12. local RunService = game:GetService("RunService")
  13.  
  14. -- ======= Basic Settings =======
  15. local player = Players.LocalPlayer
  16. local character = player.Character or player.CharacterAdded:Wait()
  17. local isR6 = character:FindFirstChild("Torso") ~= nil
  18.  
  19. -- Color Palette (pink theme)
  20. local colorPalette = {
  21. main = Color3.fromRGB(255, 105, 180),
  22. secondary = Color3.fromRGB(255, 182, 193),
  23. accent = Color3.fromRGB(219, 112, 147),
  24. text = Color3.fromRGB(255, 255, 255),
  25. glow = Color3.fromRGB(255, 20, 147)
  26. }
  27.  
  28. -- Sound Effects (feminine)
  29. local soundEffects = {
  30. hover = Instance.new("Sound"),
  31. click = Instance.new("Sound"),
  32. open = Instance.new("Sound"),
  33. close = Instance.new("Sound"),
  34. move = Instance.new("Sound"),
  35. quietMode = Instance.new("Sound") -- Added for quiet mode
  36. }
  37.  
  38. -- Sound Settings
  39. soundEffects.hover.SoundId = "rbxassetid://2537948621"
  40. soundEffects.click.SoundId = "rbxassetid://6408099308"
  41. soundEffects.open.SoundId = "rbxassetid://7383525713"
  42. soundEffects.close.SoundId = "rbxassetid://6333717580"
  43. soundEffects.move.SoundId = "rbxassetid://97302285528558"
  44. soundEffects.quietMode.SoundId = "rbxassetid://105059789745345"
  45.  
  46. for _, sound in pairs(soundEffects) do
  47. sound.Volume = 0.6
  48. sound.Parent = player:FindFirstChildOfClass("PlayerGui")
  49. end
  50.  
  51. -- ======= Create Interface =======
  52. local gui = Instance.new("ScreenGui")
  53. gui.Name = "SallyGamingProfile"
  54. gui.Parent = game.CoreGui
  55. gui.ZIndexBehavior = Enum.ZIndexBehavior.Global
  56.  
  57. -- Main Profile Frame
  58. local profileFrame = Instance.new("Frame")
  59. profileFrame.Size = UDim2.new(0, 350, 0, 450)
  60. profileFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  61. profileFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  62. profileFrame.BackgroundColor3 = Color3.fromRGB(40, 35, 50)
  63. profileFrame.BackgroundTransparency = 0.15
  64. profileFrame.BorderSizePixel = 0
  65. profileFrame.Parent = gui
  66.  
  67. -- Rounded Corners
  68. local corner = Instance.new("UICorner")
  69. corner.CornerRadius = UDim.new(0, 15)
  70. corner.Parent = profileFrame
  71.  
  72. -- Glow Effect
  73. local glow = Instance.new("UIStroke")
  74. glow.Color = colorPalette.glow
  75. glow.Thickness = 3
  76. glow.Transparency = 0.4
  77. glow.Parent = profileFrame
  78.  
  79. -- Top Control Bar (draggable area)
  80. local topBar = Instance.new("Frame")
  81. topBar.Size = UDim2.new(1, 0, 0, 40)
  82. topBar.Position = UDim2.new(0, 0, 0, 0)
  83. topBar.BackgroundColor3 = colorPalette.main
  84. topBar.BackgroundTransparency = 0.7
  85. topBar.Parent = profileFrame
  86.  
  87. -- Top Bar Corner
  88. local topBarCorner = Instance.new("UICorner")
  89. topBarCorner.CornerRadius = UDim.new(0, 15)
  90. topBarCorner.Parent = topBar
  91.  
  92. -- Close Button (X)
  93. local closeButton = Instance.new("TextButton")
  94. closeButton.Size = UDim2.new(0, 30, 0, 30)
  95. closeButton.Position = UDim2.new(1, -40, 0, 5)
  96. closeButton.BackgroundColor3 = Color3.fromRGB(255, 100, 100)
  97. closeButton.BackgroundTransparency = 0.5
  98. closeButton.Text = "X"
  99. closeButton.TextColor3 = colorPalette.text
  100. closeButton.Font = Enum.Font.GothamBold
  101. closeButton.TextSize = 18
  102. closeButton.Parent = topBar
  103.  
  104. -- Minimize Button (-)
  105. local minimizeButton = Instance.new("TextButton")
  106. minimizeButton.Size = UDim2.new(0, 30, 0, 30)
  107. minimizeButton.Position = UDim2.new(1, -80, 0, 5)
  108. minimizeButton.BackgroundColor3 = colorPalette.secondary
  109. minimizeButton.BackgroundTransparency = 0.5
  110. minimizeButton.Text = "-"
  111. minimizeButton.TextColor3 = colorPalette.text
  112. minimizeButton.Font = Enum.Font.GothamBold
  113. minimizeButton.TextSize = 18
  114. minimizeButton.Parent = topBar
  115.  
  116. -- Button Corners
  117. local buttonCorner = Instance.new("UICorner")
  118. buttonCorner.CornerRadius = UDim.new(0, 10)
  119. buttonCorner.Parent = closeButton
  120. buttonCorner:Clone().Parent = minimizeButton
  121.  
  122. -- Control Button Effects
  123. local function setupControlButton(button)
  124. button.MouseEnter:Connect(function()
  125. soundEffects.hover:Play()
  126. TweenService:Create(
  127. button,
  128. TweenInfo.new(0.2),
  129. {
  130. BackgroundTransparency = 0.3,
  131. Size = UDim2.new(0, 35, 0, 35)
  132. }
  133. ):Play()
  134. end)
  135.  
  136. button.MouseLeave:Connect(function()
  137. TweenService:Create(
  138. button,
  139. TweenInfo.new(0.2),
  140. {
  141. BackgroundTransparency = 0.5,
  142. Size = UDim2.new(0, 30, 0, 30)
  143. }
  144. ):Play()
  145. end)
  146. end
  147.  
  148. setupControlButton(closeButton)
  149. setupControlButton(minimizeButton)
  150.  
  151. -- Close Function
  152. closeButton.MouseButton1Click:Connect(function()
  153. soundEffects.close:Play()
  154. TweenService:Create(
  155. profileFrame,
  156. TweenInfo.new(0.5, Enum.EasingStyle.Back),
  157. {Size = UDim2.new(0, 0, 0, 0)}
  158. ):Play()
  159. task.delay(0.5, function()
  160. gui:Destroy()
  161. end)
  162. end)
  163.  
  164. -- Content Frame (will be hidden when minimized)
  165. local contentFrame = Instance.new("Frame")
  166. contentFrame.Size = UDim2.new(1, 0, 1, -40)
  167. contentFrame.Position = UDim2.new(0, 0, 0, 40)
  168. contentFrame.BackgroundTransparency = 1
  169. contentFrame.Parent = profileFrame
  170.  
  171. -- Minimize Function
  172. local minimized = false
  173. minimizeButton.MouseButton1Click:Connect(function()
  174. soundEffects.click:Play()
  175. minimized = not minimized
  176.  
  177. if minimized then
  178. -- Hide content
  179. contentFrame.Visible = false
  180. -- Resize frame
  181. TweenService:Create(
  182. profileFrame,
  183. TweenInfo.new(0.5, Enum.EasingStyle.Back),
  184. {Size = UDim2.new(0, 350, 0, 40)}
  185. ):Play()
  186. else
  187. -- Show content
  188. contentFrame.Visible = true
  189. -- Resize frame
  190. TweenService:Create(
  191. profileFrame,
  192. TweenInfo.new(0.5, Enum.EasingStyle.Back),
  193. {Size = UDim2.new(0, 350, 0, 450)}
  194. ):Play()
  195. end
  196. end)
  197.  
  198. -- ======= PROFILE CONTENT =======
  199. -- Profile Avatar
  200. local avatar = Instance.new("ImageLabel")
  201. avatar.Size = UDim2.new(0, 120, 0, 120)
  202. avatar.Position = UDim2.new(0.5, -60, 0, 10)
  203. avatar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  204. avatar.Image = "rbxassetid://11778372953"
  205. avatar.Parent = contentFrame
  206.  
  207. -- Avatar Effects
  208. local avatarGlow = Instance.new("UIStroke")
  209. avatarGlow.Color = colorPalette.glow
  210. avatarGlow.Thickness = 3
  211. avatarGlow.Transparency = 0.3
  212. avatarGlow.Parent = avatar
  213.  
  214. local avatarCorner = Instance.new("UICorner")
  215. avatarCorner.CornerRadius = UDim.new(1, 0)
  216. avatarCorner.Parent = avatar
  217.  
  218. -- Username
  219. local username = Instance.new("TextLabel")
  220. username.Size = UDim2.new(1, -20, 0, 30)
  221. username.Position = UDim2.new(0, 10, 0, 140)
  222. username.BackgroundTransparency = 1
  223. username.Text = "Sally S37"
  224. username.TextColor3 = colorPalette.text
  225. username.Font = Enum.Font.GothamBold
  226. username.TextSize = 24
  227. username.Parent = contentFrame
  228.  
  229. -- Nickname
  230. local nickname = Instance.new("TextLabel")
  231. nickname.Size = UDim2.new(1, -20, 0, 25)
  232. nickname.Position = UDim2.new(0, 10, 0, 170)
  233. nickname.BackgroundTransparency = 1
  234. nickname.Text = "@SallyS37"
  235. nickname.TextColor3 = colorPalette.secondary
  236. nickname.Font = Enum.Font.Gotham
  237. nickname.TextSize = 18
  238. nickname.Parent = contentFrame
  239.  
  240. -- Divider Line
  241. local divider = Instance.new("Frame")
  242. divider.Size = UDim2.new(1, -40, 0, 2)
  243. divider.Position = UDim2.new(0, 20, 0, 210)
  244. divider.BackgroundColor3 = colorPalette.glow
  245. divider.BackgroundTransparency = 0.7
  246. divider.BorderSizePixel = 0
  247. divider.Parent = contentFrame
  248.  
  249. -- Profile Description
  250. local description = Instance.new("TextLabel")
  251. description.Size = UDim2.new(1, -40, 0, 80)
  252. description.Position = UDim2.new(0, 20, 0, 220)
  253. description.BackgroundTransparency = 1
  254. description.Text = "💮 سكربتات سالي (S37) مجمعه في مكان واحد + التي سيتم اضافتها ✨"
  255. description.TextColor3 = colorPalette.text
  256. description.Font = Enum.Font.Gotham
  257. description.TextSize = 16
  258. description.TextYAlignment = Enum.TextYAlignment.Top
  259. description.Parent = contentFrame
  260.  
  261. -- Menu Script Button
  262. local menuButton = Instance.new("TextButton")
  263. menuButton.Size = UDim2.new(0, 150, 0, 40)
  264. menuButton.Position = UDim2.new(0.5, -75, 1, -100)
  265. menuButton.BackgroundColor3 = colorPalette.secondary
  266. menuButton.BackgroundTransparency = 0.7
  267. menuButton.Text = "قائمه السكربتات"
  268. menuButton.TextColor3 = colorPalette.text
  269. menuButton.Font = Enum.Font.GothamBold
  270. menuButton.TextSize = 16
  271. menuButton.ZIndex = 2 -- Higher than menu
  272. menuButton.Parent = contentFrame
  273.  
  274. -- Menu Button Effects
  275. local menuButtonCorner = Instance.new("UICorner")
  276. menuButtonCorner.CornerRadius = UDim.new(0, 10)
  277. menuButtonCorner.Parent = menuButton
  278.  
  279. local menuButtonGlow = Instance.new("UIStroke")
  280. menuButtonGlow.Color = colorPalette.glow
  281. menuButtonGlow.Thickness = 2
  282. menuButtonGlow.Transparency = 0.5
  283. menuButtonGlow.Parent = menuButton
  284.  
  285. menuButton.MouseEnter:Connect(function()
  286. soundEffects.hover:Play()
  287. TweenService:Create(
  288. menuButton,
  289. TweenInfo.new(0.2),
  290. {
  291. BackgroundTransparency = 0.5,
  292. Size = UDim2.new(0, 160, 0, 45)
  293. }
  294. ):Play()
  295. end)
  296.  
  297. menuButton.MouseLeave:Connect(function()
  298. TweenService:Create(
  299. menuButton,
  300. TweenInfo.new(0.2),
  301. {
  302. BackgroundTransparency = 0.7,
  303. Size = UDim2.new(0, 150, 0, 40)
  304. }
  305. ):Play()
  306. end)
  307.  
  308. -- Script Menu (positioned ABOVE the button)
  309. local scriptMenu = Instance.new("Frame")
  310. scriptMenu.Size = UDim2.new(0, 200, 0, 0) -- Start with height 0
  311. scriptMenu.Position = UDim2.new(0.5, -100, 0, menuButton.Position.Y.Offset - 160) -- Positioned above button
  312. scriptMenu.BackgroundColor3 = Color3.fromRGB(50, 40, 60)
  313. scriptMenu.BackgroundTransparency = 0.2
  314. scriptMenu.Visible = false
  315. scriptMenu.ZIndex = 1 -- Below button
  316. scriptMenu.Parent = contentFrame
  317.  
  318. local menuCorner = Instance.new("UICorner")
  319. menuCorner.CornerRadius = UDim.new(0, 15)
  320. menuCorner.Parent = scriptMenu
  321.  
  322. local menuGlow = Instance.new("UIStroke")
  323. menuGlow.Color = colorPalette.glow
  324. menuGlow.Thickness = 2
  325. menuGlow.Transparency = 0.3
  326. menuGlow.Parent = scriptMenu
  327.  
  328. -- Menu Title
  329. local menuTitle = Instance.new("TextLabel")
  330. menuTitle.Size = UDim2.new(1, 0, 0, 30)
  331. menuTitle.Position = UDim2.new(0, 0, 0, 0)
  332. menuTitle.BackgroundTransparency = 1
  333. menuTitle.Text = "🌸 Список скриптов 🌸"
  334. menuTitle.TextColor3 = colorPalette.text
  335. menuTitle.Font = Enum.Font.GothamBold
  336. menuTitle.TextSize = 18
  337. menuTitle.Parent = scriptMenu
  338.  
  339. -- R6 Button
  340. local r6Button = Instance.new("TextButton")
  341. r6Button.Size = UDim2.new(1, -20, 0, 40)
  342. r6Button.Position = UDim2.new(0, 10, 0, 40)
  343. r6Button.BackgroundColor3 = colorPalette.secondary
  344. r6Button.BackgroundTransparency = 0.7
  345. r6Button.Text = "F37 - طيران (авиакомпания)"
  346. r6Button.TextColor3 = colorPalette.text
  347. r6Button.Font = Enum.Font.Gotham
  348. r6Button.TextSize = 16
  349. r6Button.Parent = scriptMenu
  350.  
  351. -- R15 Button
  352. local r15Button = Instance.new("TextButton")
  353. r15Button.Size = UDim2.new(1, -20, 0, 40)
  354. r15Button.Position = UDim2.new(0, 10, 0, 90)
  355. r15Button.BackgroundColor3 = colorPalette.secondary
  356. r15Button.BackgroundTransparency = 0.7
  357. r15Button.Text = "B37 - اغتصاب (изнасилование)"
  358. r15Button.TextColor3 = colorPalette.text
  359. r15Button.Font = Enum.Font.Gotham
  360. r15Button.TextSize = 16
  361. r15Button.Parent = scriptMenu
  362.  
  363. -- Menu Button Corners
  364. local menuBtnCorner = Instance.new("UICorner")
  365. menuBtnCorner.CornerRadius = UDim.new(0, 10)
  366. menuBtnCorner.Parent = r6Button
  367. menuBtnCorner:Clone().Parent = r15Button
  368.  
  369. -- Menu Button Effects
  370. local function setupMenuButton(button)
  371. button.MouseEnter:Connect(function()
  372. soundEffects.hover:Play()
  373. TweenService:Create(
  374. button,
  375. TweenInfo.new(0.2),
  376. {BackgroundTransparency = 0.5}
  377. ):Play()
  378. end)
  379.  
  380. button.MouseLeave:Connect(function()
  381. TweenService:Create(
  382. button,
  383. TweenInfo.new(0.2),
  384. {BackgroundTransparency = 0.7}
  385. ):Play()
  386. end)
  387. end
  388.  
  389. setupMenuButton(r6Button)
  390. setupMenuButton(r15Button)
  391.  
  392. -- Toggle Menu Function
  393. local menuVisible = false
  394. menuButton.MouseButton1Click:Connect(function()
  395. soundEffects.click:Play()
  396. menuVisible = not menuVisible
  397.  
  398. if menuVisible then
  399. scriptMenu.Visible = true
  400. TweenService:Create(
  401. scriptMenu,
  402. TweenInfo.new(0.3),
  403. {Size = UDim2.new(0, 200, 0, 150)}
  404. ):Play()
  405. else
  406. TweenService:Create(
  407. scriptMenu,
  408. TweenInfo.new(0.3),
  409. {Size = UDim2.new(0, 200, 0, 0)}
  410. ):Play()
  411. task.delay(0.3, function()
  412. scriptMenu.Visible = false
  413. end)
  414. end
  415. end)
  416.  
  417. -- Close menu when clicking outside
  418. local function closeMenu()
  419. if menuVisible then
  420. menuVisible = false
  421. TweenService:Create(
  422. scriptMenu,
  423. TweenInfo.new(0.3),
  424. {Size = UDim2.new(0, 200, 0, 0)}
  425. ):Play()
  426. task.delay(0.3, function()
  427. scriptMenu.Visible = false
  428. end)
  429. end
  430. end
  431.  
  432. UserInputService.InputBegan:Connect(function(input, processed)
  433. if not processed and input.UserInputType == Enum.UserInputType.MouseButton1 then
  434. local mousePos = UserInputService:GetMouseLocation()
  435. local menuPos = scriptMenu.AbsolutePosition
  436. local menuSize = scriptMenu.AbsoluteSize
  437.  
  438. -- Check if click is outside menu
  439. if menuVisible and
  440. (mousePos.X < menuPos.X or
  441. mousePos.X > menuPos.X + menuSize.X or
  442. mousePos.Y < menuPos.Y or
  443. mousePos.Y > menuPos.Y + menuSize.Y) then
  444. closeMenu()
  445. end
  446. end
  447. end)
  448.  
  449. -- Script Functions
  450. r6Button.MouseButton1Click:Connect(function()
  451. soundEffects.click:Play()
  452. loadstring(game:HttpGet("https://pastebin.com/raw/UrdjVVxZ"))()
  453. closeMenu()
  454. end)
  455.  
  456. r15Button.MouseButton1Click:Connect(function()
  457. soundEffects.click:Play()
  458. loadstring(game:HttpGet("https://pastebin.com/raw/UpcYCVuF"))()
  459. closeMenu()
  460. end)
  461.  
  462. -- ======= WINDOW DRAGGING WITHOUT EDGE LIMITS =======
  463. local dragging
  464. local dragInput
  465. local dragStart
  466. local startPos
  467.  
  468. local function beginDrag(input)
  469. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  470. dragging = true
  471. dragStart = input.Position
  472. startPos = profileFrame.Position
  473. soundEffects.move:Play()
  474.  
  475. input.Changed:Connect(function()
  476. if input.UserInputState == Enum.UserInputState.End then
  477. dragging = false
  478. end
  479. end)
  480. end
  481. end
  482.  
  483. local function updateDrag(input)
  484. if dragging then
  485. local delta = input.Position - dragStart
  486. profileFrame.Position = UDim2.new(
  487. startPos.X.Scale,
  488. startPos.X.Offset + delta.X,
  489. startPos.Y.Scale,
  490. startPos.Y.Offset + delta.Y
  491. )
  492. end
  493. end
  494.  
  495. -- Connect dragging events to topBar
  496. topBar.InputBegan:Connect(beginDrag)
  497. topBar.InputChanged:Connect(function(input)
  498. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  499. dragInput = input
  500. end
  501. end)
  502.  
  503. UserInputService.InputChanged:Connect(function(input)
  504. if input == dragInput and dragging then
  505. updateDrag(input)
  506. end
  507. end)
  508.  
  509. -- ======= QUIET MODE FEATURE =======
  510. -- Create quiet mode button (under menu button)
  511. local quietModeButton = Instance.new("TextButton")
  512. quietModeButton.Size = UDim2.new(0, 150, 0, 40)
  513. quietModeButton.Position = UDim2.new(0.5, -75, 1, -50)
  514. quietModeButton.BackgroundColor3 = Color3.fromRGB(50, 50, 80)
  515. quietModeButton.BackgroundTransparency = 0.7
  516. quietModeButton.Text = "الوضع الهادئ"
  517. quietModeButton.TextColor3 = colorPalette.text
  518. quietModeButton.Font = Enum.Font.GothamBold
  519. quietModeButton.TextSize = 16
  520. quietModeButton.ZIndex = 2
  521. quietModeButton.Parent = contentFrame
  522.  
  523. -- Button effects
  524. local quietModeCorner = Instance.new("UICorner")
  525. quietModeCorner.CornerRadius = UDim.new(0, 10)
  526. quietModeCorner.Parent = quietModeButton
  527.  
  528. local quietModeGlow = Instance.new("UIStroke")
  529. quietModeGlow.Color = Color3.fromRGB(100, 100, 255)
  530. quietModeGlow.Thickness = 2
  531. quietModeGlow.Transparency = 0.5
  532. quietModeGlow.Parent = quietModeButton
  533.  
  534. quietModeButton.MouseEnter:Connect(function()
  535. soundEffects.hover:Play()
  536. TweenService:Create(
  537. quietModeButton,
  538. TweenInfo.new(0.2),
  539. {
  540. BackgroundTransparency = 0.5,
  541. Size = UDim2.new(0, 160, 0, 45)
  542. }
  543. ):Play()
  544. end)
  545.  
  546. quietModeButton.MouseLeave:Connect(function()
  547. TweenService:Create(
  548. quietModeButton,
  549. TweenInfo.new(0.2),
  550. {
  551. BackgroundTransparency = 0.7,
  552. Size = UDim2.new(0, 150, 0, 40)
  553. }
  554. ):Play()
  555. end)
  556.  
  557. -- Create black background for quiet mode
  558. local quietModeBackground = Instance.new("Frame")
  559. quietModeBackground.Size = UDim2.new(1, 0, 1, 0)
  560. quietModeBackground.Position = UDim2.new(0, 0, 0, 0)
  561. quietModeBackground.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  562. quietModeBackground.BackgroundTransparency = 1 -- Start transparent
  563. quietModeBackground.ZIndex = 10 -- Above everything
  564. quietModeBackground.Parent = gui
  565.  
  566. -- Create circular image above exit button
  567. local quietModeImage = Instance.new("ImageLabel")
  568. quietModeImage.Size = UDim2.new(0, 100, 0, 100)
  569. quietModeImage.Position = UDim2.new(0.5, -50, 0.3, -50)
  570. quietModeImage.BackgroundTransparency = 1
  571. quietModeImage.Image = "rbxassetid://1836693146" -- Replace with your desired image ID
  572. quietModeImage.Visible = false
  573. quietModeImage.ZIndex = 11 -- Above background
  574. quietModeImage.Parent = quietModeBackground
  575.  
  576. -- Make image circular
  577. local imageCorner = Instance.new("UICorner")
  578. imageCorner.CornerRadius = UDim.new(1, 0)
  579. imageCorner.Parent = quietModeImage
  580.  
  581. -- Create quiet mode exit button
  582. local quietModeExitButton = quietModeButton:Clone()
  583. quietModeExitButton.Size = UDim2.new(0, 150, 0, 40)
  584. quietModeExitButton.Position = UDim2.new(0.5, -75, 0.5, 50) -- Positioned below the image
  585. quietModeExitButton.BackgroundTransparency = 0.7
  586. quietModeExitButton.Text = "إغلاق الوضع الهادئ"
  587. quietModeExitButton.Visible = false
  588. quietModeExitButton.ZIndex = 11 -- Above background
  589. quietModeExitButton.Parent = quietModeBackground
  590.  
  591. -- Quiet mode state
  592. local quietModeActive = false
  593.  
  594. -- Toggle quiet mode function
  595. local function toggleQuietMode()
  596. quietModeActive = not quietModeActive
  597.  
  598. if quietModeActive then
  599. -- Show quiet mode
  600. soundEffects.quietMode:Play()
  601. soundEffects.quietMode.Looped = true
  602.  
  603. -- Hide all other elements
  604. profileFrame.Visible = false
  605.  
  606. -- Show background, image and exit button
  607. quietModeImage.Visible = true
  608. quietModeExitButton.Visible = true
  609. TweenService:Create(
  610. quietModeBackground,
  611. TweenInfo.new(0.5),
  612. {BackgroundTransparency = 0.3}
  613. ):Play()
  614. else
  615. -- Exit quiet mode
  616. soundEffects.quietMode:Stop()
  617.  
  618. -- Show all elements
  619. profileFrame.Visible = true
  620.  
  621. -- Hide background, image and exit button
  622. TweenService:Create(
  623. quietModeBackground,
  624. TweenInfo.new(0.5),
  625. {BackgroundTransparency = 1}
  626. ):Play()
  627. task.delay(0.5, function()
  628. quietModeImage.Visible = false
  629. quietModeExitButton.Visible = false
  630. end)
  631. end
  632. end
  633.  
  634. -- Connect quiet mode buttons
  635. quietModeButton.MouseButton1Click:Connect(function()
  636. soundEffects.click:Play()
  637. toggleQuietMode()
  638. end)
  639.  
  640. quietModeExitButton.MouseButton1Click:Connect(function()
  641. soundEffects.click:Play()
  642. toggleQuietMode()
  643. end)
  644.  
  645. -- Initial Animation
  646. profileFrame.Size = UDim2.new(0, 0, 0, 0)
  647. profileFrame.Visible = true
  648. soundEffects.open:Play()
  649. TweenService:Create(
  650. profileFrame,
  651. TweenInfo.new(0.7, Enum.EasingStyle.Back),
  652. {Size = UDim2.new(0, 350, 0, 450)}
  653. ):Play()
Advertisement
Add Comment
Please, Sign In to add comment