In workspace I have a control room of buttons used for a ROBLOX gameshow set. My goal is to have a GUI pop-up from the side screen, it will tween so it slides onto screen. How can achieve this? I'm also using buttons so when a button is pressed ("A part") the tween happens. Thankyou!
How can I make a ScreenGUI tween onto the screen when a part is clicked?
2 answers
I would personally recommend putting your code for this in a localscript to eliminate unnecessary network traffic and because this is a purely client-side effect. You'd want to listen to mouse clicks on the click detector and tween your gui in on a click. Here's some sample code:
local clickDetector = path.to.clickdetector
local gui = path.to.gui
clickDetector.MouseClick:Connect(function()
gui:TweenPosition(...)
end)
Hopefully this helps you! Here are some links to check out:
https://developer.roblox.com/en-us/api-reference/class/ClickDetector
https://developer.roblox.com/en-us/api-reference/function/GuiObject/TweenPosition
I Recommend for you to watch Alvin Blox tutorial on this ...
2 comments
Do not post anything if you're unable to provide a proper answer yourself, downvote
lmao this guy is a legend, upvote from me
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Thankyou! :)
If this answered your question, please accept it! Would be much appreciated.