i made this script that makes it so when the mouse is hovered over a GUI it gets bigger

wait(0.1)
script.Parent.MouseEnter:Connect(function()
	script.Parent.Size = script.Parent.Size + UDim2.new(0,200,0,200)
end)
script.Parent.MouseLeave:Connect(function()
	script.Parent.Size = script.Parent.Size - UDim2.new(0,200,0,200)
end)

ive had problems like this before and i just fixed it doing wait(.1) but its not working in this case

4 comments

0

Provide more information What type of script is this? Where is it located?

0

Is it a local script?

0

https://imgur.com/a/jDqHddo it's located in LocalScript

0

Disabled script? , Nothing is really wrong here