✓ Accepted answer
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
test:TweenPosition(UDim2.new(0,test.AbsolutePosition.X-testloc.AbsolutePosition.X,0,test.AbsolutePosition.Y-testloc.AbsolutePosition.Y))
NOTICE: I didn't test this, it should work tho.
7 comments
I am not getting any errors, but it still is not moving
It might be because the Receptors is at the same position of the "test" or it's because it already moved, but Roblox was still loading while it was moving.
You may of just helped, My receptors and arrows are in two separate frames.
Oh, I'm going to edit my post to fix it. I know a way to fix it now!
Ok I just edited it.
Yup, it worked! Thank you!
No problem!