Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script 1: Duplicating and modifying Trial GUI
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
- local UI = PlayerGui:WaitForChild("UI")
- local HUD = UI:WaitForChild("HUD")
- local LobbyTimer = Game.Workspace.Server:WaitForChild("Trial"):WaitForChild("Lobby"):WaitForChild("Easy_Screen"):WaitForChild("Frame"):WaitForChild("Value")
- -- 1. Find the original Trial GUI
- local Trial = HUD:WaitForChild("Trial")
- -- 2. Duplicate the Trial GUI and rename it to InfoContainer
- if HUD:FindFirstChild("InfoContainer") then
- HUD:FindFirstChild("InfoContainer"):Destroy()
- end
- if HUD:FindFirstChild("Gacha"):FindFirstChild("Left"):FindFirstChild("HideStarsContainer") then
- HUD:FindFirstChild("Gacha"):FindFirstChild("Left"):FindFirstChild("HideStarsContainer"):Destroy()
- end
- local InfoContainer = Trial:Clone()
- InfoContainer.Name = "InfoContainer"
- InfoContainer.Parent = HUD -- Parent it under the same container
- InfoContainer.Visible = not Trial.Visible
- -- 3. Make InfoContainer visible only if the original Trial GUI is not visible
- -- 4. Rename Trial.Frame.Timer to Trial Countdown
- local Timer = InfoContainer:WaitForChild("Frame"):WaitForChild("Timer")
- local Mobs = InfoContainer:WaitForChild("Frame"):WaitForChild("Mobs")
- local Room = InfoContainer:WaitForChild("Frame"):WaitForChild("Room")
- local InfoFrame = InfoContainer:WaitForChild("Frame")
- -- 5. Change Timer.Title text to "Trial Countdown"
- local TimerTitle = Timer:FindFirstChild("Title")
- if TimerTitle then
- TimerTitle:Destroy()
- end
- local TimerValue = Timer.Value
- TimerValue:FindFirstChild("UID"):Destroy()
- -- Script 2: Duplicating and modifying AutoSell button in Gacha HUD
- 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
- local Frame = HideStarsContainer:FindFirstChild("Frame") -- Correctly searching for "Frame"
- if Frame then
- -- Destroy existing Icon (with capital I)
- local Icon = Frame:FindFirstChild("Icon") -- Searching for "Icon" with a capital I
- if Icon then
- Icon:Destroy() -- Remove the original icon
- end
- -- Create a new TextLabel
- local TextLabel = Instance.new("TextLabel")
- TextLabel.Name = "CloseButton"
- TextLabel.Text = "X" -- Display "X" as the close symbol
- TextLabel.TextColor3 = Color3.fromRGB(170, 0, 0) -- Set the text color
- TextLabel.Font = Enum.Font.SourceSansBold -- Use a bold font
- TextLabel.TextSize = 70 -- Adjust the size of the text
- TextLabel.BackgroundTransparency = 1 -- Make the background transparent
- TextLabel.Size = UDim2.new(1, 0, 1, 0) -- Match the Frame size
- TextLabel.Parent = Frame -- Parent it to the Frame
- -- Add click functionality
- Frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- GachaHUD.Visible = false -- Hide the Gacha HUD
- end
- end)
- end
- local PetLevel = game:GetService("Players").LocalPlayer.PlayerGui.UI.HUD.InfoContainer.Frame.Mobs.Value
- local PetName = game:GetService("Players").LocalPlayer.PlayerGui.UI.HUD.InfoContainer.Frame.Mobs.Title
- local LevelBox = game:GetService("Players").LocalPlayer.PlayerGui.Box.Pet.Frame.Utils.Level
- local ExpBox = game:GetService("Players").LocalPlayer.PlayerGui.Box.Pet.Frame.Utils.Exp
- local PetNameBox = game:GetService("Players").LocalPlayer.PlayerGui.Box.Pet.Frame.Title
- local PetExp = game:GetService("Players").LocalPlayer.PlayerGui.UI.HUD.InfoContainer.Frame.Room.Value
- if PetLevel:FindFirstChild("UID") then
- PetLevel:FindFirstChild("UID"):Destroy()
- PetLevel.Position = UDim2.new(0.5, 0, 0.5, 0)
- end
- if PetExp:FindFirstChild("UID") then
- PetExp:FindFirstChild("UID"):Destroy()
- PetExp.Position = UDim2.new(0.5, 0, 0.5, 0)
- end
- if Mobs:FindFirstChild("Icon") then
- Mobs:FindFirstChild("Icon"):Destroy()
- end
- if Mobs:FindFirstChild("Title") then
- Mobs:FindFirstChild("Title"):Destroy()
- end
- if Room:FindFirstChild("Icon") then
- Room:FindFirstChild("Icon"):Destroy()
- end
- if Room:FindFirstChild("Title") then
- Room:FindFirstChild("Title"):Destroy()
- end
- Room.Size = UDim2.new(1,0,1,0)
- Mobs.Size = UDim2.new(1,0,1,0)
- Timer.Size = UDim2.new(1,0,1,0)
- InfoFrame.Size = UDim2.new(1,0,0.15,0)
- -- Function to update both text labels when the target texts change
- local function updateText()
- TimerValue.Text = LobbyTimer.Text
- PetLevel.Text = PetNameBox.Text.. " " ..LevelBox.Text
- PetExp.Text = ExpBox.Text
- end
- -- Connect the Changed event to update the text labels whenever the target texts change
- local connection1 = LobbyTimer:GetPropertyChangedSignal("Text"):Connect(updateText)
- local connection2 = ExpBox:GetPropertyChangedSignal("Text"):Connect(updateText)
- local connection3 = PetNameBox:GetPropertyChangedSignal("Text"):Connect(updateText)
- local connection4 = LevelBox:GetPropertyChangedSignal("Text"):Connect(updateText)
- -- Initial call to set the text when the script runs
- updateText()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement