Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UIGui = Instance.new("ScreenGui")
- local OpenCloseSearcherButton = Instance.new("TextButton")
- local OpenCloseSearcherButtonUICorner = Instance.new("UICorner")
- UIGui.Parent = game.CoreGui
- game.CoreGui.TopBarApp.TopBarFrame.LeftFrame.ChatIcon.Size = UDim2.new(0, 32, 1, 0)
- OpenCloseSearcherButton.Parent = UIGui
- OpenCloseSearcherButton.Size = UDim2.new(0, 32, 0, 32)
- OpenCloseSearcherButton.Position = UDim2.new(0, 105, 0, -32)
- OpenCloseSearcherButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- OpenCloseSearcherButton.BackgroundTransparency = 0.5
- OpenCloseSearcherButton.Text = "🔎"
- OpenCloseSearcherButton.TextColor3 = Color3.fromRGB(200, 200, 200)
- OpenCloseSearcherButton.Font = 'Code'
- OpenCloseSearcherButton.TextSize = 20
- OpenCloseSearcherButton.MouseButton1Click:Connect(function()
- if OpenCloseSearcherButton.Text == "🔎" then
- OpenCloseSearcherButton.Text = " 🔎 "
- print("On")
- else
- if OpenCloseSearcherButton.Text == " 🔎 " then
- OpenCloseSearcherButton.Text = "🔎"
- print("off")
- end
- end
- end)
- OpenCloseSearcherButtonUICorner.Parent = OpenCloseSearcherButton
- OpenCloseSearcherButtonUICorner.CornerRadius = UDim.new(0, 8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement