Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to tween the size of an ImageButton?

So I am trying to tween the size of an image button when a mouse hovers over it. Here is my code.

function size()
    script.Parent:TweenSize(0, 90, 0, 90)
end

function unsize()
    script.Parent:TweenSize(0, 75, 0, 75)
end

function buy()
--implement buy for each image button (IGNORE THIS)
end

script.Parent.MouseEnter:Connect(size)
script.Parent.MouseLeave:Connect(unsize)
script.Parent.MouseButton1Click:Connect(buy)  --ignore

The code is not working and I'm not sure why? Any help is much appreciated :)

1 answer

NEVERMIND I FORGOT UDim2 Thanks for reading anyway :)

This discussion is preserved as it was. New answers, comments, and votes are closed.