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

My gui setup wont function correctly,How to change position of a gui?

I have this script inside your butt and around the corner.

repeat wait() until script.Parent.Parent.PlayerGui:FindFirstChild("Menu") do
	t = script.Parent.Parent.PlayerGui.Menu
t.A.Position.X.Scale = -0.264
t.B.Position.X.Scale = 1
t.C.Position.X.Scale = -0.264
t.D.Position.X.Scale = 1
t.E.Position.X.Scale = -0.264
t.F.Position.X.Scale = 1
end

and when it gets to the t.A.Posblahblahitionbla, it cant assign scale, i thinks its because i wrote the plain number wrong, i tried-

UDim.new(-0.264) and not just -0.264 but it didnt work either.

please help me format this correctly

3 comments

1

t.A.Position = UDim2.new(-.264) -- etc.etc.

0

OMG IT WORKS YES thank you, you might wanna change that comment into answer so i can mark it

0

no problem :)

1 answer

✓ Accepted answer

Try using UDim2.new() instead

i.e.

t.A.Position = UDim2.new(-.264)

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