How to Fix Buttons

This is what I want to happen


This is what happens to mine

I dont know how to make it look like that

This script is inside of the frame with all of the buttons
Screenshot 2023-08-16 at 09.08.57

local folder = script.Parent --Location of Orb

local abutton = folder.A
local bbutton = folder.B
local cbutton = folder.C

local aframe = abutton.NameFrame
local bframe = bbutton.NameFrame
local cframe = cbutton.NameFrame


abutton.MouseEnter:Connect(function()
	aframe.Visible = not aframe.Visible
	abutton.BackgroundColor3 = Color3.new(255,255,255)
end)

bbutton.MouseEnter:Connect(function()
	bframe.Visible = not bframe.Visible
	bbutton.BackgroundColor3 = Color3.new(255,255,255)
end)

cbutton.MouseEnter:Connect(function()
	cframe.Visible = not cframe.Visible
	cbutton.BackgroundColor3 = Color3.new(255,255,255)
end)
1 Like

It would help if you also had button.MouseLeave functions.

Example:

abutton.MouseLeave:Connect(function()
    aframe.Visible = not aframe.Visible
    abutton.BackgroundColor3 = Color3.new(25,25,25)
end)

That is only an example, however, you can change it however you need to restore the original frame size and color.

I hope this helps!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.