local mainGui = game.StarterGui.MainGui
local shopButton = mainGui.ShopButton
local shopHoverC = 10,20,10
local shopHoverS = 15,5,10,0
function shopButtonHovering()
shopButton.Size = Udim2.new(shopHoverS)
shopButton.BackgroundColor3 = Color3.new(shopHoverC)
end
I want it that when a player’s mouse hovers on shopButton it will run the function.
Is there some event that makes it work? Also should it be in a LocalScript? Thanks!

3 comments
I didn't saw someone already answered it XD
cant you use local functions instead of global?
thanks for the help! Also using global functions still works :V