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

How do you make a gui go somewhere else on the screen?

I think this is a good place to start

script.Parent.MouseEnter:Connect(function(GUI)
	-- Move the gui code goes in here
end)

1 comment

0

You can use Gui.Position = UDim2.new(ScaleX,OffsetX,ScaleY,OffsetY)

1 answer

✓ Accepted answer

Great question, you can just use TweenPosition, that would be the best way to do this.

TweenPosition can be used to move GUIs to a certain place, with cool effects.

How do you use it?

local Gui = script.Parent --reference variable for the gui object

--tweens the gui to the position you set it to, with the out and quad style, and over time of 2 seconds. The time parameter is optional by the way,
Gui:TweenPosition(UDim2.new(Position here),"Out", "Quad", 2)

Links: If you want to see all the different styles you can use, check out this page:

Hope I helped, and have a wonderful day! :)

1 comment

0

Thank you

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