Hey guys! I’m trying to make a cool thing where if you hover your mouse to a GUI an effect happens, no errors happen and everything gets printed, can anyone help?
wait(2)
--//Variables
local menu = script.Parent
local play = menu.BackgroundFrame.TextLabel.TouchFrame
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local animationPart = play.Parent.SideAnimation
--//Events
play.MouseEnter:Connect(function()
print("mouse entered")
animationPart:TweenSizeAndPosition(UDim2.new(0.682,0,0.05,0),UDim2.new(0.15,0,1,0))
end)
play.MouseLeave:Connect(function()
print("mouse left")
animationPart:TweenSizeAndPosition(UDim2.new(0,0,0.05,0),UDim2.new(0.15,0,1,0))
end)