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

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

Asked by 6 years ago

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..)

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? Amiaa16 3227 — 6y
0
(started learning guis) I'm just tryna learn the basics first.. Grainless_Bread 132 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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). ;)

0
Thank you so much. I could've sworn that the tutorial said to use the normal script other than the localscript.. Grainless_Bread 132 — 6y
0
Maybe it's an older tutorial before Roblox changed how scripts work? Have fun! lazycoolboy500 597 — 5y
Ad

Answer this question