Hey, I’ve closed this topic, but if any need the updated script for help with theres here it is:
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Resources = require(ReplicatedStorage:WaitForChild("Resources"))
local Color = Resources:LoadLibrary("Color")
local PseudoInstance = Resources:LoadLibrary("PseudoInstance")
local LocalPlayer repeat LocalPlayer = Players.LocalPlayer until LocalPlayer or not wait()
local PlayerGui repeat PlayerGui = LocalPlayer:FindFirstChildOfClass("PlayerGui") until PlayerGui or not wait()
Frame = script.Parent
local Flat = PseudoInstance.new("RippleButton")
Flat.AnchorPoint = Vector2.new(0, 0)
Flat.Size = UDim2.new(0, 70, 0, 30)
Flat.Position = UDim2.new(0.808, 0, 0.125, 0)
Flat.PrimaryColor3 = Color3.fromRGB(39, 39, 50)
Flat.SecondaryColor3 = Color3.fromRGB(110, 110, 124)
Flat.BorderRadius = 8
Flat.Text = "SEARCH"
Flat.Parent = Frame
Flat.Style = "Contained"
Flat.Font = Enum.Font.Ubuntu
Flat.TextSize = 20
Flat.OnPressed:Connect(function()
print("Pressed Flat")
end)