Ad
Log in to vote
0

How do I use Vector2?

Asked by 7 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
7 years ago

Try using UDim2.new(120,200)

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

Try

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

Answer this question