MouseEnter not working

My image button should grow in size when it is hovered over but it only works for one of the buttons?

All the scripts are the same I have no idea why one works and the others dont

local Frame = script.Parent 
local Crafting = Frame.Crafting
local Inventory = Frame.Inventory
local Quests = Frame.Quests
print("why isnt this script working")
Quests.MouseEnter:Connect(function()
	print("it does work") <- this does not print
	Quests:TweenSize(
		UDim2.new(1.0, 0, 0.35, 0),
		"Out",
		"Quad",
		0.15,
		true
	)
	Inventory:TweenPosition(
		UDim2.new(1.0, 0, 0.5, 0),
		"Out",
		"Quad",
		0.15,
		true
	)
	Crafting:TweenPosition(
		UDim2.new(1.0, 0, 0.95, 0),
		"Out",
		"Quad",
		0.15,
		true
	)
end)

Quests.MouseLeave:Connect(function()
	Quests:TweenSize(
		UDim2.new(1.0, 0, 0.3, 0),
		"In",
		"Quad",
		0.15,
		true
	)
	Inventory:TweenPosition(
		UDim2.new(1.0, 0, 0.45, 0),
		"In",
		"Quad",
		0.15,
		true
	)
	Crafting:TweenPosition(
		UDim2.new(1.0, 0, 0.9, 0),
		"In",
		"Quad",
		0.15,
		true
	)
end)

Hmm. Odd. Can we see your explorer/hierarchy?

1 Like


here u go

wait I named them the same thing im stupid

2 Likes

LOL we all do things like that don’t worry. Glad your issue has been resolved.

2 Likes