Hi everyone!
I'm pretty new to scripting and I have a problem. Can you please tell me how to fix it in layman's terms?
Script i tried:
Player = game.Players.LocalPlayer Mouse = Player:GetMouse() local InvenButton = game.StarterGui.ScreenGui.Frame.InvenB local ShopButton = game.StarterGui.ScreenGui.Frame.ShopB local BuyButton = game.StarterGui.ScreenGui.Frame.BuyB local SettingsButton = game.StarterGui.ScreenGui.Frame.SettingB InvenButton.Mouse:connect(function() game.StarterGui.ScreenGui.Frame.InvenB:TweenSize(UDim2.new(0, 88, 0, 80)) end) local B = -- where B is B.MouseEnter:Connect(function() end) B.MouseLeave:Connect(function() end)
Change the name of the event from Mouse to MouseEnter
MouseEnter is when the mouse hovers over it, and MouseLeave is for when it stops hovering.
InvenButton.MouseEnter:connect(function() game.StarterGui.ScreenGui.Frame.InvenB:TweenSize(UDim2.new(0, 88, 0, 80)) end)