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

Setting the Scale of a ScreenGui? [Solved]

I'm basically trying to have a tooltip that displays a player's health percentage when another player hovers his mouse of him. I just got the bulk of it working but the Output window keeps saying "X cannot be assigned to" about this line:

script.Parent.ImageLabel.Size.X = Vector2.new(0.5, 0)
-- I've tried Vector2 and setting only the Scale. the problem is with X

1 answer

✓ Accepted answer
script.Parent.ImageLabel.Size.X = UDim2.new(0.5, 0)

UDim2.new() should work.

1 comment

0

Oh, huh I'll go look at what UDim is then. Thanks!

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