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

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

Asked by 4 years ago

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

1
t.A.Position = UDim2.new(-.264) -- etc.etc. xEmmalyx 285 — 4y
0
OMG IT WORKS YES thank you, you might wanna change that comment into answer so i can mark it CommanderCaubunsia 126 — 4y
0
no problem :) xEmmalyx 285 — 4y

1 answer

Log in to vote
1
Answered by
xEmmalyx 285 Moderation Voter
4 years ago

Try using UDim2.new() instead

i.e.

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

Answer this question