Advertisement
overgrinds

Test123

Nov 17th, 2024 (edited)
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local LocalPlayer = Players.LocalPlayer
  3. local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  4. local GachaHUD = PlayerGui:WaitForChild("UI"):WaitForChild("HUD"):WaitForChild("Gacha")
  5. local AutoSell = GachaHUD:WaitForChild("Left"):WaitForChild("AutoSell")
  6.  
  7. -- Duplicate AutoSell and rename it
  8. local HideStarsContainer = AutoSell:Clone()
  9. HideStarsContainer.Name = "HideStarsContainer"
  10. HideStarsContainer.Parent = GachaHUD.Left -- Parent it under the same container
  11.  
  12. -- Modify the child Frame and its Icon
  13. local Frame = HideStarsContainer:FindFirstChild("Frame")
  14. if Frame then
  15.     local Icon = Frame:FindFirstChild("icon")
  16.     if Icon and Icon:IsA("ImageLabel") then
  17.         Icon.Image = "rbxassetid://6031094678" -- Update the icon
  18.         Icon.ImageColor3 = Color3.fromRGB(170, 0, 0) -- Set the new color
  19.     end
  20. end
  21.  
  22. -- Add functionality to hide the Gacha HUD when clicked
  23. HideStarsContainer.MouseButton1Click:Connect(function()
  24.     GachaHUD.Visible = false -- Hide the Gacha HUD
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement