Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
- local GachaHUD = PlayerGui:WaitForChild("UI"):WaitForChild("HUD"):WaitForChild("Gacha")
- local AutoSell = GachaHUD:WaitForChild("Left"):WaitForChild("AutoSell")
- -- Duplicate AutoSell and rename it
- local HideStarsContainer = AutoSell:Clone()
- HideStarsContainer.Name = "HideStarsContainer"
- HideStarsContainer.Parent = GachaHUD.Left -- Parent it under the same container
- -- Modify the child Frame and its Icon
- local Frame = HideStarsContainer:FindFirstChild("Frame")
- if Frame then
- local Icon = Frame:FindFirstChild("icon")
- if Icon and Icon:IsA("ImageLabel") then
- Icon.Image = "rbxassetid://6031094678" -- Update the icon
- Icon.ImageColor3 = Color3.fromRGB(170, 0, 0) -- Set the new color
- end
- end
- -- Add functionality to hide the Gacha HUD when clicked
- HideStarsContainer.MouseButton1Click:Connect(function()
- GachaHUD.Visible = false -- Hide the Gacha HUD
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement