script please fix

local button = script.Parent
button.MouseEnter:connect(function()
	for i = 0, 1, .1 do
		button.BackgroundTransparency = i
		wait()
	end
end


3 comments

0

just make another one for mouseleaving

0

yes but its a frame that fills the entire screen so mouseleaving wouldn't work

0

Why are you using MouseEnter then? .... Just trying to figure out what your doing and what your wanting to do.