Here is my script I’m trying to make this script change the position of a textlabel inside a frame to the top right corner of the screen from the center of the frame
So the textlabel starts from the center of my frame and after 23 seconds it will slide its self to the top right corner of the frame like a text animation
01 local ScreenGui = Instance.new("ScreenGui",game.Players.LocalPlayer:WaitForChild("PlayerGui"))
02 local Frame = Instance.new("Frame",ScreenGui)
03 Frame.Size = UDim2.new(0, 100,0, 100)
04 local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint",Frame)
05 UIAspectRatioConstraint.AspectRatio = 1.004
06 UIAspectRatioConstraint.AspectType = Enum.AspectType.FitWithinMaxSize
07 UIAspectRatioConstraint.DominantAxis = Enum.DominantAxis.Width
08
09 -- Using UIAspectRadioConstraint, this makes sure that the size doesn't get changed through any device with any resolution, not sure if I did it perfectly, but I'm definitely sure it works most the time.
10
11 function ChangeCorner(Corner)
12 if Corner == "TopRight" then
13 Frame:TweenPosition(UDim2.new(0.921, 0,-0, 0),'In','Back',1)
14 elseif Corner == "TopLeft" then
15 -- You do whatever here if you want, I was just using this function for references.
16 end
17 end
18
19 -- When you join, you should see it after 5 seconds.
20 wait(5)
21 ChangeCorner("TopRight")

3 comments
What is not working
In relation to script performance, read this about Instance.new. https://devforum.roblox.com/t/psa-dont-use-instance-new-with-parent-argument/30296
It’s not making the textlabel slide to the top right the textlabels name is textlabelv1