Hello!
I am making a main menu using a part, and within the part will be the buttons needed to be clicked to play the game. When using a server script, the script below works fine, but locally, it doesn’t. My goal is to have the following code run but only on the client. I have tried ChatGPT and looking through the DevForum, but haven’t found anything.
Local scripts don’t actually work in the workspace. Luckily SurfaceGui’s have a property called “Adornee”. Move your SurfaceGui into StarterGui then click Adornee and click onto the part, this will put the UI onto the part the same as you’d have it now. All you need to do is just change your scripts to match the new directories.