Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Setting the Scale of a ScreenGui? [Solved]

Asked by 10 years ago

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

Log in to vote
2
Answered by 10 years ago
script.Parent.ImageLabel.Size.X = UDim2.new(0.5, 0)

UDim2.new() should work.

0
Oh, huh I'll go look at what UDim is then. Thanks! deaththerapy 60 — 10y
Ad

Answer this question