Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local button = script.Parent
- local screenGui = button.Parent
- local frame = screenGui:FindFirstChild("DonateFrame")
- local isFrameVisible = false
- button.MouseButton1Click:Connect(function()
- isFrameVisible = not isFrameVisible
- frame.Visible = isFrameVisible
- if isFrameVisible then
- button.BackgroundColor3 = Color3.new(1, 0.422446, 0.421729)
- button.Text = "CLOSE"
- else
- button.BackgroundColor3 = Color3.new(0.451, 1, 0.467)
- button.Text = "DONATE"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement