Ameno__GodOH

shopfd da mandy

Nov 4th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.73 KB | None | 0 0
  1. local Library = {
  2. Windows = {}
  3. }
  4.  
  5. local UserInputService = game:GetService("UserInputService")
  6. local TweenService = game:GetService("TweenService")
  7. local CoreGui = game:GetService("CoreGui")
  8. local Players = game:GetService("Players")
  9.  
  10. local Player = Players.LocalPlayer
  11. local Mouse = Player:GetMouse()
  12.  
  13. local _ENV = getgenv()
  14.  
  15. local Sounds = {} do
  16. local SoundService = game:GetService("SoundService")
  17. local Folder = Instance.new("Folder", SoundService)
  18. Folder.Name = "Mandy's UI Sounds"
  19.  
  20. if SoundService:FindFirstChild(Folder.Name) and SoundService[Folder.Name] ~= Folder then
  21. SoundService[Folder.Name]:Destroy()
  22. end
  23.  
  24. local Click = Instance.new("Sound", Folder)
  25. Click.SoundId = "rbxassetid://8388724806"
  26.  
  27. local Hit1 = Instance.new("Sound", Folder)
  28. Hit1.SoundId = "rbxassetid://406913243"
  29.  
  30. local Hit2 = Instance.new("Sound", Folder)
  31. Hit2.SoundId = "rbxassetid://1471213022"
  32.  
  33. local lenText = Instance.new("Sound", Folder)
  34. lenText.SoundId = "rbxassetid://929615155"
  35.  
  36. local ShopMusic = Instance.new("Sound", Folder)
  37. ShopMusic.SoundId = "rbxassetid://1844487326"
  38. ShopMusic.Volume = 0
  39. ShopMusic.Looped = true
  40. ShopMusic:Play()
  41.  
  42. Sounds.Hits = {Hit1, Hit2}
  43. Sounds.lenText = lenText
  44. Sounds.Click = Click
  45. Sounds.ShopMusic = ShopMusic
  46. end
  47.  
  48. local ScreenGui do
  49. local Name = "SimpleWindow-Mandy"
  50.  
  51. if CoreGui:FindFirstChild(Name) then
  52. ScreenGui = CoreGui[Name]
  53. ScreenGui:ClearAllChildren()
  54. else
  55. ScreenGui = Instance.new("ScreenGui", CoreGui)
  56. ScreenGui.Name = Name
  57. ScreenGui.IgnoreGuiInset = true
  58. end
  59. end
  60.  
  61. local Border = Instance.new("Frame", ScreenGui) do
  62. Border.Size = UDim2.new(0, 48, 0, 48)
  63. Border.Position = UDim2.new(0, 280, 0, 4)
  64. Border.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  65. Border.BackgroundTransparency = 0.3
  66. Border.ClipsDescendants = true
  67. Border.Active = true
  68.  
  69. local OpenClose = Instance.new("TextButton", Border)
  70. OpenClose.Size = UDim2.new(0, 40, 0, 40)
  71. OpenClose.Position = UDim2.new(0, 4, 0.5, 0)
  72. OpenClose.AnchorPoint = Vector2.new(0, 0.5)
  73. OpenClose.BackgroundTransparency = 1
  74. OpenClose.Text = ""
  75.  
  76. local Icon = Instance.new("ImageLabel", OpenClose)
  77. Icon.Size = UDim2.new(1, 0, 1, 0)
  78. Icon.Position = UDim2.new(0.5, 0, 0.5, 0)
  79. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  80. Icon.BackgroundTransparency = 1
  81. Icon.Image = "rbxassetid://115839646734512"
  82.  
  83. local Scale = Instance.new("UIScale", Icon)
  84.  
  85. local Corner = Instance.new("UICorner", OpenClose)
  86. Corner.CornerRadius = UDim.new(1, 0)
  87. Corner:Clone().Parent = Border
  88.  
  89. local Tweens = {
  90. Enter = TweenService:Create(Scale, TweenInfo.new(0.1, Enum.EasingStyle.Quint), { Scale = 0.7 }),
  91. Leave = TweenService:Create(Scale, TweenInfo.new(0.25, Enum.EasingStyle.Quint), { Scale = 1 })
  92. }
  93.  
  94. OpenClose.Activated:Connect(function()
  95. Tweens.Enter:Play()
  96. task.delay(0.1, Tweens.Leave.Play, Tweens.Leave)
  97.  
  98. if Border:GetAttribute("Opened") then
  99. Border:SetAttribute("Opened", false)
  100.  
  101. OpenClose.BackgroundTransparency = 1
  102. Border:TweenSize(UDim2.new(0, 48, 0, 48), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  103. Library:CloseUIs()
  104. else
  105. Border:SetAttribute("Opened", true)
  106.  
  107. local NewSize = UDim2.new(0, Library:GetButtonsSize() + 48, 0, 48)
  108. OpenClose.BackgroundTransparency = 0.8
  109. Border:TweenSize(NewSize, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  110. end
  111. end)
  112. end
  113.  
  114. local Container = Instance.new("CanvasGroup", Border) do
  115. Container.Size = UDim2.new(1, -48, 1, 0)
  116. Container.Position = UDim2.new(0, 48, 0, 0)
  117. Container.BorderSizePixel = 0
  118. Container.BackgroundTransparency = 1
  119.  
  120. local Layout = Instance.new("UIListLayout", Container)
  121. Layout.VerticalAlignment = Enum.VerticalAlignment.Center
  122. Layout.FillDirection = Enum.FillDirection.Horizontal
  123. Layout.Padding = UDim.new(0, 10)
  124. end
  125.  
  126. local DisplayTem = Instance.new("TextLabel") do
  127. DisplayTem.Size = UDim2.new(0, 0, 0, 25)
  128. DisplayTem.AutomaticSize = Enum.AutomaticSize.X
  129. DisplayTem.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  130. DisplayTem.TextSize = 15
  131. DisplayTem.Font = Enum.Font.GothamMedium
  132. DisplayTem.TextColor3 = Color3.fromRGB(255, 255, 255)
  133. DisplayTem.BackgroundTransparency = 0.2
  134.  
  135. local Corner = Instance.new("UICorner", DisplayTem)
  136. end
  137.  
  138. function Library:GetButtonsSize(): number
  139. return (#Container:GetChildren() - 1) * 50
  140. end
  141.  
  142. function Library:CreateWindow(Config: table?): table?
  143. if type(Config) ~= "table" or not Config.Title then
  144. return error(`table expected, got {type(Config)}`)
  145. end
  146.  
  147. local Window = {
  148. Title = Config.Title or Config.Name or "Window",
  149. InitialPosition = Config.InitialPosition or UDim2.new(0.5, 0, -0.5, 0),
  150. UISize = Config.UISize or UDim2.new(0.5, 0, 0.7, 0),
  151. Enabled = false
  152. }
  153.  
  154. local Main = Instance.new("Frame", ScreenGui) do
  155. Main.Size = Window.UISize
  156. Main.Position = Window.InitialPosition
  157. Main.AnchorPoint = Vector2.new(0.5, 0.5)
  158. Main.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  159. Main.BackgroundTransparency = 0.3
  160. Main.Visible = false
  161.  
  162. local Corner = Instance.new("UICorner", Main)
  163. Corner.CornerRadius = UDim.new(0.1, 0)
  164.  
  165. local Title = Instance.new("TextLabel", Main)
  166. Title.Size = UDim2.new(1, 0, 0.1, 0)
  167. Title.Position = UDim2.new(0, 0, 0, 0)
  168. Title.BackgroundTransparency = 1
  169. Title.Text = Window.Title
  170. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  171. Title.TextScaled = true
  172. Title.FontFace = Font.fromId(12187371840)
  173. end
  174.  
  175. function Window.ToggleGui()
  176. self:CloseUIs(Window)
  177.  
  178. Window.Enabled = not Main.Visible
  179.  
  180. if Config.Callback then
  181. task.spawn(Config.Callback, Window)
  182. end
  183.  
  184. if Main.Visible then
  185. Main:TweenPosition(Window.InitialPosition, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.1, true)
  186. task.wait(0.03)
  187. Main.Visible = false
  188. else
  189. Main.Visible = true
  190. Main:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.5, true)
  191. task.wait(0.5)
  192.  
  193. if Window.Opened then
  194. task.spawn(Window.Opened)
  195. end
  196. end
  197. end
  198.  
  199. function Window:AddButton(Config)
  200. local Button = {
  201. Title = Config.Name or Config.Title or "Button",
  202. Callback = Config.Callback
  203. }
  204.  
  205. local Container = self:GetContainer()
  206.  
  207. local TextButton = Instance.new("TextButton", Container)
  208. TextButton.Size = UDim2.new(1, 0, 0, 32)
  209. TextButton.Position = UDim2.new(0.10, 0, 0.15, 0)
  210. TextButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  211. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  212. TextButton.TextScaled = true
  213. TextButton.FontFace = Font.fromId(12187371840)
  214. TextButton.Text = Button.Title
  215. TextButton.Name = "Option"
  216.  
  217. local Corner = Instance.new("UICorner", TextButton)
  218. Corner.CornerRadius = UDim.new(0.4, 0)
  219.  
  220. TextButton.Activated:Connect(function()
  221. Sounds.Click:Play()
  222.  
  223. if Button.Callback then
  224. task.spawn(Button.Callback)
  225. end
  226. end)
  227. end
  228.  
  229. function Window:AddSection(Config)end
  230.  
  231. function Window:AddToggle(Config)
  232. local Toggle = {
  233. Title = Config.Name or Config.Title or "Button",
  234. Callback = Config.Callback,
  235. Enabled = (Config.ToggleStatus == "On") or Config.Default or false,
  236. }
  237.  
  238. local Container = self:GetContainer()
  239.  
  240. local TextButton = Instance.new("TextButton", Container)
  241. TextButton.Size = UDim2.new(1, 0, 0, 32)
  242. TextButton.Position = UDim2.new(0.10, 0, 0.15, 0)
  243. TextButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  244. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  245. TextButton.TextScaled = true
  246. TextButton.FontFace = Font.fromId(12187371840)
  247. TextButton.Text = Toggle.Title .. (Toggle.Enabled and ": On" or ": Off")
  248. TextButton.Name = "Option"
  249.  
  250. local Corner = Instance.new("UICorner", TextButton)
  251. Corner.CornerRadius = UDim.new(0.4, 0)
  252.  
  253. TextButton.Activated:Connect(function()
  254. Sounds.Click:Play()
  255. task.spawn(Toggle.SetValue, Toggle)
  256. end)
  257.  
  258. function Toggle:SetValue(Value: boolean?): (nil)
  259. if Value == nil then
  260. Value = not self.Enabled
  261. end
  262.  
  263. self.Enabled = Value
  264. TextButton.Text = self.Title .. (Value and ": On" or ": Off")
  265.  
  266. if self.Callback then
  267. task.spawn(self.Callback, Value, self)
  268. end
  269. end
  270.  
  271. Toggle:SetValue(Toggle.Enabled)
  272.  
  273. return Toggle
  274. end
  275.  
  276. function Window:AddParagraph(Config)
  277. local Paragraph = {
  278. Title = Config.Name or Config.Title or "Paragraph",
  279. Content = Config.Text or Config.Content or "Paragraph"
  280. }
  281.  
  282. local Container = self:GetContainer()
  283.  
  284. local Frame = Instance.new("Frame", Container)
  285. Frame.Size = UDim2.new(1, 0, 0, 32)
  286. Frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  287. Frame.AutomaticSize = Enum.AutomaticSize.Y
  288. Frame.Name = "Option"
  289.  
  290. local Piece = Instance.new("Frame", Frame)
  291. Piece.BackgroundTransparency = 1
  292. Piece.Position = UDim2.new(0, 0, 1, 0)
  293. Piece.Size = UDim2.new(0, 0, 0, 5)
  294.  
  295. local TextLabel1 = Instance.new("TextLabel", Frame)
  296. TextLabel1.Size = UDim2.new(1, 0, 0, 32)
  297. TextLabel1.TextColor3 = Color3.fromRGB(255, 255, 255)
  298. TextLabel1.TextScaled = true
  299. TextLabel1.FontFace = Font.fromId(12187371840)
  300. TextLabel1.Text = Paragraph.Title
  301. TextLabel1.BackgroundTransparency = 1
  302.  
  303. local TextLabel2 = Instance.new("TextLabel", Frame)
  304. TextLabel2.Size = UDim2.new(1, 0, 0, 32)
  305. TextLabel2.Position = UDim2.new(0, 8, 0, 32)
  306. TextLabel2.TextColor3 = Color3.fromRGB(200, 200, 200)
  307. TextLabel2.TextSize = 20
  308. TextLabel2.FontFace = Font.fromId(12187371840)
  309. TextLabel2.Text = Paragraph.Content
  310. TextLabel2.AutomaticSize = Enum.AutomaticSize.Y
  311. TextLabel2.BackgroundTransparency = 1
  312.  
  313. local Corner = Instance.new("UICorner", Frame)
  314. Corner.CornerRadius = UDim.new(0.4, 0)
  315.  
  316. function Paragraph:SetContent(Text: string?): (nil)
  317. TextLabel2.Text = (type(Text) == "string" and Text) or TextLabel2.Text
  318. end
  319.  
  320. return setmetatable(Paragraph, {
  321. __newindex = function(self, index, value)
  322. if index == "Visible" then
  323. Frame.Visible = value
  324. return nil
  325. end
  326. return rawset(self, index, value)
  327. end
  328. })
  329. end
  330.  
  331. function Window:GetContainer()
  332. if self.Container then
  333. return self.Container
  334. end
  335.  
  336. local Container = Instance.new("ScrollingFrame", Main) do
  337. Container.Size = UDim2.new(1, 0, 0.95, -10)
  338. Container.Position = UDim2.new(1, 0, 1, 0)
  339. Container.AnchorPoint = Vector2.new(1, 1)
  340. Container.BackgroundTransparency = 1
  341. Container.AutomaticCanvasSize = "Y"
  342. Container.CanvasSize = UDim2.new(0, 0, 0, 0)
  343.  
  344. local Padding = Instance.new("UIPadding", Container)
  345. Padding.PaddingLeft = UDim.new(0, 10)
  346. Padding.PaddingRight = UDim.new(0, 10)
  347. Padding.PaddingTop = UDim.new(0, 10)
  348. Padding.PaddingBottom = UDim.new(0, 10)
  349.  
  350. local Layout = Instance.new("UIListLayout", Container)
  351. Layout.Padding = UDim.new(0, 5)
  352. end
  353.  
  354. self.Container = Container
  355. return Container
  356. end
  357.  
  358. if Config.Builder then
  359. Config.Builder(Window, Window:GetContainer())
  360. end
  361.  
  362. table.insert(self.Windows, Window)
  363. return Window
  364. end
  365.  
  366. function Library:CloseUIs(Except)
  367. for _,Window in ipairs(self.Windows) do
  368. if Window.Enabled and Window ~= Except then
  369. task.spawn(Window.ToggleGui)
  370. end
  371. end
  372. end
  373.  
  374. function Library:CreateButtons(Buttons: table?): (nil)
  375. if type(Buttons) ~= "table" then
  376. return nil
  377. end
  378.  
  379. for _,Button in ipairs(Buttons) do
  380. if not Button.Callback then continue end
  381.  
  382. local Click = Instance.new("TextButton", Container)
  383. Click.Size = UDim2.new(0, 40, 0, 40)
  384. Click.BackgroundTransparency = 1
  385. Click.Text = ""
  386.  
  387. local Icon = Instance.new("ImageLabel", Click)
  388. Icon.Image = Button.Icon or "rbxassetid://115839646734512"
  389. Icon.Size = UDim2.new(0.7, 0, 0.7, 0)
  390. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  391. Icon.Position = UDim2.new(0.5, 0, 0.5, 0)
  392. Icon.BackgroundTransparency = 1
  393. Icon.ImageTransparency = 0.15
  394.  
  395. local Corner = Instance.new("UICorner", Click)
  396. Corner.CornerRadius = UDim.new(0.5, 0)
  397.  
  398. local oldClick = 0;
  399. local Display = nil;
  400. local Scale = Instance.new("UIScale", Icon)
  401.  
  402. local Tweens = {
  403. Enter1 = TweenService:Create(Click, TweenInfo.new(0.4, Enum.EasingStyle.Quint), { BackgroundTransparency = 0.75 }),
  404. Leave1 = TweenService:Create(Click, TweenInfo.new(0.4, Enum.EasingStyle.Quint), { BackgroundTransparency = 1 }),
  405. Enter2 = TweenService:Create(Scale, TweenInfo.new(0.4, Enum.EasingStyle.Quint), { Scale = 0.8 }),
  406. Leave2 = TweenService:Create(Scale, TweenInfo.new(0.4, Enum.EasingStyle.Quint), { Scale = 1 })
  407. }
  408.  
  409. Click.MouseEnter:Connect(function()
  410. Tweens.Enter1:Play()
  411. Tweens.Enter2:Play()
  412.  
  413. if not Button.Name or Button.Name == "" then
  414. return nil
  415. end
  416.  
  417. Display = DisplayTem:Clone()
  418. Display.Position = UDim2.new(0, Mouse.X, 0, Mouse.Y + 25)
  419. Display.Text = Button.Name
  420. Display.Parent = ScreenGui
  421. end)
  422.  
  423. Click.MouseLeave:Connect(function()
  424. Tweens.Leave1:Play()
  425. Tweens.Leave2:Play()
  426.  
  427. if Display then
  428. -- local NewPos = UDim2.new(Display.Position.X.Offset, 0, Display.Position.Y.Offset - 20)
  429. -- Display:TweenPosition(NewPos, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.2, true)
  430. Display:Destroy()
  431. end
  432. end)
  433.  
  434. Click.MouseButton1Click:Connect(function()
  435. if Button.Debounce and ((tick() - oldClick) <= Button.Debounce) then
  436. return nil
  437. end
  438.  
  439. oldClick = tick()
  440.  
  441. Sounds.Click:Play()
  442. Button.Callback()
  443. end)
  444. end
  445. end
  446.  
  447. local QuestsFrame = Library:CreateWindow({
  448. Title = "Quests",
  449. UISize = UDim2.new(0.5, 0, 0.65, 0),
  450. InitialPosition = UDim2.new(0.5, 0, 1.2, 0)
  451. })
  452.  
  453. local SettingsFrame = Library:CreateWindow({
  454. Title = "Settings",
  455. UISize = UDim2.new(0.4, 0, 0.5, 0),
  456. })
  457.  
  458. local MusicToggle = SettingsFrame:AddToggle({
  459. Name = "Music",
  460. Default = true,
  461. Callback = function(Value)
  462. local music = game.Workspace:FindFirstChild("Music")
  463.  
  464. if music and music:IsA("Sound") then
  465. if Value then
  466. -- Ativa a música se estiver configurada para tocar
  467. if not music.Playing then
  468. music:Play() -- Inicia a música do jogo
  469. end
  470. else
  471. -- Desativa a música quando o toggle estiver em false
  472. if music.Playing then
  473. music:Stop() -- Para a música do jogo
  474. end
  475. end
  476. else
  477. warn("Objeto 'Music' não encontrado ou não é do tipo Sound")
  478. end
  479. end
  480. })
  481.  
  482. -- Se houver a possibilidade de outros scripts alterarem a música, você pode desativar a música fora deste toggle
  483. game.Workspace.ChildAdded:Connect(function(child)
  484. if child.Name == "Music" and child:IsA("Sound") then
  485. child:Stop() -- Para a música se for adicionada de forma inesperada
  486. end
  487. end)
  488.  
  489. local Quests = QuestsFrame:AddParagraph({ Title = "Halloween Quest", Content = "loading..." }) do
  490. local QuestFolder = Player:FindFirstChild("Quests")
  491.  
  492. task.spawn(function()
  493. if QuestFolder then
  494. local function DisplayQuest(Quest)
  495. if Quest:GetChildren() == 0 then Quest.ChildAdded:Wait() end
  496.  
  497. local Objects = {}
  498.  
  499. for _, Child in ipairs(Quest:GetChildren()) do
  500. local Name = Child.Name
  501. local Amount, Enemy = Name:match(" (%d+) (%a+)")
  502.  
  503. -- Definindo o valor máximo para Alucard
  504. local MaxValue = (Name:find("Defeat Alucard") and 3) or (tonumber(Amount) or 1)
  505.  
  506. if Name:find("Get ") then
  507. table.insert(Objects, {
  508. Object = Child,
  509. Method = "Get",
  510. Mission = Name:gsub("Get ", ""),
  511. MaxValue = tonumber(Amount) or 1
  512. })
  513. elseif Name:find("Defeat ") then
  514. table.insert(Objects, {
  515. Object = Child,
  516. Method = "Defeat",
  517. Mission = tonumber(Amount) or 1,
  518. Enemy = (tonumber(Amount) and Enemy) or Name:gsub("Defeat ", ""),
  519. MaxValue = MaxValue
  520. })
  521. elseif Enemy == "Players" then
  522. table.insert(Objects, {
  523. Object = Child,
  524. Method = "Kill",
  525. Mission = tonumber(Amount) or 10, -- Limite padrão para "Kill Players"
  526. MaxValue = tonumber(Amount) or 10 -- MaxValue para "Kill Players"
  527. })
  528. end
  529. end
  530.  
  531. local function UpdateParagraph()
  532. local Text = {}
  533. for _, Quest in ipairs(Objects) do
  534. if Quest.Display then
  535. table.insert(Text, Quest.Display)
  536. end
  537. end
  538. Quests:SetContent(table.concat(Text, "\n"))
  539. end
  540.  
  541. for _, Quest in ipairs(Objects) do
  542. local Mission = Quest.Mission
  543. local Method = Quest.Method
  544. local MaxValue = Quest.MaxValue
  545.  
  546. local function Update()
  547. local Value = math.min(Quest.Object.Value, MaxValue) -- Limita o valor ao MaxValue
  548.  
  549. if Method == "Get" then
  550. Quest.Display = string.format("Get %s %d/%d", Mission, Value, MaxValue)
  551. elseif Method == "Kill" then
  552. Quest.Display = string.format("Kill %d Players %d/%d", MaxValue, Value, MaxValue)
  553. elseif Method == "Defeat" then
  554. Quest.Display = string.format("Defeat %s %d/%d", Quest.Enemy, Value, MaxValue)
  555. end
  556.  
  557. UpdateParagraph()
  558. end
  559.  
  560. Quest.Object:GetPropertyChangedSignal("Value"):Connect(Update)
  561. Update()
  562. end
  563. end
  564.  
  565. if QuestFolder:FindFirstChild("Halloween Quest") then
  566. Quests.Visible = true
  567. DisplayQuest(QuestFolder["Halloween Quest"])
  568. QuestFolder["Halloween Quest"].Destroying:Wait()
  569. Quests.Visible = false
  570. end
  571.  
  572. QuestFolder.ChildAdded:Connect(function(Quest)
  573. if Quest.Name == "Halloween Quest" then
  574. Quests.Visible = true
  575. DisplayQuest(Quest)
  576. Quest.Destroying:Wait()
  577. Quests.Visible = false
  578. end
  579. end)
  580. else
  581. Quests.Visible = false
  582. end
  583. end)
  584. end
  585.  
  586. SettingsFrame:AddToggle({
  587. Name = "Camera Shake",
  588. Default = true,
  589. Callback = function(Value)
  590. local settings = Player:FindFirstChild("SETTINGS")
  591.  
  592. if settings then
  593. local cameraShake = settings:FindFirstChild("CameraShake")
  594.  
  595. if cameraShake then
  596. cameraShake.Value = Value
  597. end
  598. end
  599. end
  600. })
  601.  
  602. SettingsFrame:AddToggle({
  603. Name = "Blood Effects",
  604. Default = true,
  605. Callback = function(Value)
  606. local playerSettings = Player:FindFirstChild("SETTINGS")
  607.  
  608. if playerSettings then
  609. local blood = playerSettings:FindFirstChild("Blood")
  610. local bloodPools = playerSettings:FindFirstChild("BloodPools")
  611.  
  612. if blood and bloodPools then
  613. blood.Value = Value
  614. bloodPools.Value = Value and 100 or 0
  615. end
  616. end
  617. end
  618. })
  619.  
  620. SettingsFrame:AddToggle({
  621. Name = "Show Cooldown",
  622. Default = true,
  623. Callback = function(Value)
  624. local playerSettings = game:GetService("Players").LocalPlayer:FindFirstChild("SETTINGS")
  625.  
  626. if playerSettings then
  627. local cdToggle = playerSettings:FindFirstChild("CDToggle")
  628.  
  629. if cdToggle then
  630. cdToggle.Value = Value
  631. end
  632. end
  633. end
  634. })
  635.  
  636. local ShopFrame = Library:CreateWindow({
  637. Title = "Shop",
  638. UISize = UDim2.new(0.5, 0, 0.7, 0),
  639. Builder = function(self, Container)
  640. Container.Size = UDim2.new(0.58, 0, 0.95, -10)
  641. Container.AnchorPoint = Vector2.new(0, 1)
  642. Container.Position = UDim2.new(0, 0, 1, 0)
  643.  
  644. local image = Instance.new("ImageButton", Container.Parent)
  645. image.Size = UDim2.new(0, 260, 0, 210)
  646. image.Position = UDim2.new(0.9, 0, 0.4, 0)
  647. image.BackgroundTransparency = 1
  648. image.Image = "rbxassetid://73599364142863"
  649.  
  650. local textBoxImage = Instance.new("ImageLabel", image)
  651. textBoxImage.Size = UDim2.new(0, 300, 0, 140)
  652. textBoxImage.Position = UDim2.new(-0.5, 0, -0.30, 0)
  653. textBoxImage.BackgroundTransparency = 1
  654. textBoxImage.Image = "rbxassetid://101648307130217"
  655.  
  656. local textBoxImage = Instance.new("TextLabel", textBoxImage)
  657. textBoxImage.Size = UDim2.new(0, 80, 0, 80)
  658. textBoxImage.Position = UDim2.new(0.5, 0, 0.5, -10)
  659. textBoxImage.AnchorPoint = Vector2.new(0.5, 0.5)
  660. textBoxImage.BackgroundTransparency = 1
  661. textBoxImage.Text = ""
  662. textBoxImage.TextColor3 = Color3.fromRGB(0, 0, 0)
  663. textBoxImage.FontFace = Font.fromId(12187371840)
  664. textBoxImage.TextSize = 18
  665. textBoxImage.TextScaled = false
  666.  
  667. local Corountine
  668. local texts, hits = {
  669. "The boss is not my boss... \n for while...",
  670. "good to see you here",
  671. "What do you want,\n master?",
  672. "royi and boobie? \n they are powerful guys",
  673. "I saw a guy,\nselling rokakakas\n and arrows\n who buys this?..."
  674. }, {
  675. "Auch",
  676. "Don't hit me",
  677. "Stop evil guy",
  678. "1v1 me?"
  679. }
  680.  
  681. local function PlayText(Text)
  682. local next = coroutine.create(function()
  683. local split = Text:split("")
  684.  
  685. for i = 1, #split do
  686. textBoxImage.Text = textBoxImage.Text .. split[i]
  687. coroutine.yield(split[i])
  688. end
  689. end)
  690.  
  691. Corountine, textBoxImage.Text = next, ""
  692.  
  693. repeat wait()
  694. if not Sounds.lenText.Playing then
  695. Sounds.lenText:Play()
  696. end
  697. until Corountine ~= next or not self.Enabled or not coroutine.resume(next)
  698.  
  699. textBoxImage.TextColor3 = Color3.fromRGB(0, 0, 0)
  700. end
  701.  
  702. local function hitAnim()
  703. image.ImageColor3 = Color3.fromRGB(255, 0, 0)
  704. image:TweenSize(UDim2.new(0, 250, 0, 190), Enum.EasingDirection.Out, Enum.EasingStyle.Elastic, 0.3, true)
  705. task.wait(0.1)
  706. image:TweenSize(UDim2.new(0, 260, 0, 210), Enum.EasingDirection.Out, Enum.EasingStyle.Elastic, 0.3, true)
  707. image.ImageColor3 = Color3.fromRGB(255, 255, 255)
  708. end
  709.  
  710. image.Activated:Connect(function()
  711. task.spawn(hitAnim)
  712.  
  713. Sounds.Hits[math.random(#Sounds.Hits)]:Play()
  714. textBoxImage.TextColor3 = Color3.fromRGB(240, 25, 25)
  715.  
  716. PlayText(hits[math.random(#hits)])
  717. end)
  718.  
  719. self.Opened = function()
  720. PlayText(texts[math.random(#texts)])
  721. end
  722. end,
  723.  
  724. Callback = function(self)
  725. local Music = workspace:FindFirstChild("Music")
  726. local ShopMusic = Sounds.ShopMusic -- Certifique-se de que você tenha definido corretamente o objeto ShopMusic
  727.  
  728. if Music and ShopMusic then
  729. if self.Enabled then
  730. -- Inicia o aumento de volume para ShopMusic e diminui o volume de Music
  731. while self.Enabled and (Music.Volume > 0 or ShopMusic.Volume < 0.5) do
  732. task.wait()
  733. if Music.Volume > 0 then
  734. Music.Volume = Music.Volume - 0.01
  735. end
  736. if ShopMusic.Volume < 0.5 then
  737. ShopMusic.Volume = ShopMusic.Volume + 0.01
  738. end
  739. end
  740. -- Assegura que ShopMusic tenha um volume final de 0.5
  741. ShopMusic.Volume = 0.5
  742. -- Inicia ShopMusic se não estiver tocando
  743. if not ShopMusic.Playing then
  744. ShopMusic:Play() -- Inicia a música da loja
  745. end
  746. else
  747. -- Reduz o volume de ShopMusic e aumenta o de Music
  748. while not self.Enabled and (ShopMusic.Volume > 0 or Music.Volume < 0.5) do
  749. task.wait()
  750. if ShopMusic.Volume > 0 then
  751. ShopMusic.Volume = ShopMusic.Volume - 0.01
  752. end
  753. if Music.Volume < 0.5 then
  754. Music.Volume = Music.Volume + 0.01
  755. end
  756. end
  757. -- Assegura que Music tenha um volume final de 0.5
  758. Music.Volume = 0.5
  759. -- Reativa a Music se o toggle estiver desativado
  760. if not Music.Playing then
  761. Music:Play() -- Inicia a música do jogo
  762. end
  763. end
  764. end
  765. end
  766. })
  767.  
  768. ShopFrame:AddButton({
  769. Name = "gamepass",
  770. Callback = function()
  771. -- add here the script to active the purchase system
  772. end
  773. })
  774.  
  775. Library:CreateButtons({
  776. {
  777. Name = "Quest",
  778. Icon = "rbxassetid://10734943448",
  779. Callback = QuestsFrame.ToggleGui
  780. },
  781. {
  782. Name = "Shop",
  783. Icon = "rbxassetid://111429937040741",
  784. Callback = function()
  785. ShopFrame.ToggleGui()
  786. end
  787. },
  788. {
  789. Name = "Bank",
  790. Icon = "rbxassetid://10723417608",
  791. Debounce = 0.25,
  792. Callback = function()
  793. Library:CloseUIs()
  794. local Inventory = Player.PlayerGui:WaitForChild("Inventory"):WaitForChild("Inventory")
  795. Inventory.Visible = not Inventory.Visible
  796. end
  797. },
  798. {
  799. Name = "Settings",
  800. Icon = "rbxassetid://10734950309",
  801. Callback = SettingsFrame.ToggleGui
  802. }
  803. })
Advertisement
Add Comment
Please, Sign In to add comment