I am a trying to get one imageLabel to go over another one
local test = script.Parent.Parent.Main.Arrows.LeftA local testloc = script.Parent.Parent.Main.Receptors.Left.Position test:TweenPosition(UDim2.new(testloc))
here was my attempt at doing it, but It didn't work.
Do not put a extra "UDim2.new()", since "testloc" is already a UDim.
Here's the code to fix it:
local test = script.Parent.Parent.Main.Arrows.LeftA local testloc = script.Parent.Parent.Main.Receptors.Left.Position test:TweenPosition(testloc)
Also, as the other answer says you need to put the other requirements, they're actually optional. That is to make them look even neater.
If this works, please click the "Answer" button just to make sure it helps you.
If you are still getting errors, tell me.
EDIT: Since it's using different frames, here's a fix. Using AbsolutePosition, it should find where it is
local test = script.Parent.Parent.Main.Arrows.LeftA local testloc = script.Parent.Parent.Main.Receptors.Left --remove the position on this test:TweenPosition(UDim2.new(0,test.AbsolutePosition.X-testloc.AbsolutePosition.X,0,test.AbsolutePosition.Y-testloc.AbsolutePosition.Y)) --Adding absolutepositions
NOTICE: I didn't test this, it should work tho.
On the last line you are making a new UDim2 when it’s already a UDim2.
test:TweenPosition(testloc)