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

Get a property of a Udim2?

Asked by
Nckripted 580 Moderation Voter
3 years ago

I have recently been making an RPG combat system.

I have been working on the fighting mechanic, in which you try clicking Enter when the bar reaches the center of the frame. The closer it is, the more damage it does.

However, when I try reading the position of the Udim2, it always returns 0. I try reading it like this:

judger.Position.X.Offset --> 0

Any help would be appreciated!

0
You sure you changing Offset on code? Maybe you are changing Scale Leamir 3138 — 3y
0
I know I am changing offset because the bar moves exactly like it's supposed to. When I print the Udim itself, it returns a correct number. Nckripted 580 — 3y

1 answer

Log in to vote
0
Answered by
Nckripted 580 Moderation Voter
3 years ago

SOLVED! For some reason, scale controls the position lol. Thanks to Leamir for trying to help!

Ad

Answer this question