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

GUI udim2 position/size isn't working. (Tried countless times) new change with the udim2?

I've tried countless times on making the GUI go to a different position. I've checked Roblox tutorials and seen that my script is correct. Please help out... it's been 3 hours.

SCRIPT

script.Parent.Position = UDim2.new(0, 200, 0, 100)

Pictures:

https://gyazo.com/2a780a318b21573c7438e601484f454e

And yes I've checked the output. Didn't say anything about it...

Tried making a game place for it.. didn't work...

(P.S I just started out with learning guis..)

2 comments

1

Try using a LocalScript, as guis should be handled with these. Also I'm not sure why would you make a script with only a line of code that changes the position, rather than changing it manually in the properties window?

0

(started learning guis) I'm just tryna learn the basics first..

1 answer

✓ Accepted answer

To start off, you shouldn't be using a Script, use a LocalScript instead. ~Thanks Kiriot22

Everything else seems fine. Just make sure that when you are using GUIs, you aren't using a Script.

If you have any questions or issues please contact me (or Kiriot22 - he seems to know what he's doing). ;)

2 comments

0

Thank you so much. I could've sworn that the tutorial said to use the normal script other than the localscript..

0

Maybe it's an older tutorial before Roblox changed how scripts work? Have fun!

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