Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does my gui move to a corner? (Gui is curved)

script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent:TweenPosition(UDim2.new(450, 50, 1, 0),"Out","Sine")
end)

I got the X and Y values in there...

1 answer

✓ Accepted answer

A very silly mistake. Values of Scale property only take values from 0-1. Here, you are putting 450 which is a HUGE value.

Change the value to 0 or the actual original position of the frame.

local frame = script.Parent.Parent 
frame:TweenPosition(UDim2.new(0.5, -235, 1, 100),"Out","Sine", 1)

This discussion is preserved as it was. New answers, comments, and votes are closed.