I tweened my gui, and it only goes diagnol.
because your tweening it to a position that is not on the same x or y axis as the anchor point/gui position.
So how to fix it? I dont know how
send the script so I can edit it for you
script.Parent.Activated:Connect(function()
script.Parent.Parent:TweenPosition(UDim2.new(0,2,0))
wait(1)
script.Parent.Parent.Visible = false
end)
whats the original position of the ui
In the middle (I used a thingy so it puts it so mobile players can see fine)
are you trying to move it off screen?
Yes, to the top where you can’t see it
It just goes the wrong way, it like goes diagnol. but to the upper corner
script.Parent.Activated:Connect(function()
script.Parent.Parent.AnchorPoint = Vector2.new(script.Parent.Parent.Position.X.Scale, script.Parent.Parent.Position.Y.Scale)
script.Parent.Parent:TweenPosition(UDim2.new(script.Parent.Parent.Position.X.Scale,0,1,0))
wait(1)
script.Parent.Parent.Visible = false
end)
Try this
Nope, Stil goes the wrong way…
try edited version of my script. its above.
Dosent work… Is it the anchor point you were talking 'bout?
Still isnt working idk why!!
local object = script.Parent.Parent
object.AnchorPoint = Vector2.new(0.5, 0.5)
wait(2)
object:TweenPosition(UDim2.new(0.5, 0,1, 0))
Yes I think it shall work!!!