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

How do I use Vector2?

Asked by 10 years ago

I'm trying to set my AbsolutePosition of a GUI to be something new, but it said I had to use Vector2 to do this. I tried to set it to Vector2.new(120, 200), but it came up with an error saying "can't set value". Any help?

2 answers

Log in to vote
1
Answered by
Voltoxus 248 Moderation Voter
10 years ago

Try using UDim2.new(120,200)

0
Thank you, works great. Vescatur 95 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

Try

Udim2.new(120,0,120,0)
0
It goes Scale, Offset, Scale, Offset. This answer would almost never be applicable. BlueTaslem 18071 — 10y

Answer this question