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

Get a property of a Udim2?

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!

2 comments

0

You sure you changing Offset on code? Maybe you are changing Scale

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.

1 answer

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

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