Frames in StarterGui wont show after play button in ReplicatedFirst is clicked on, help needed!

Hello everyone! I really need some help with this issue that I stumbled upon whilst scripting for an upcoming game that I’m working on. I hope the title made sense to what this post is about, but I want one of my scripts to look through both ReplicatedFirst & StarterGui.

What do I want to achieve?
After the loading screen has finished & been destroyed, I want one of the local scripts to detect when the play button inside of the main menu frame has been clicked on. After you click on it, one of these scripts will destroy the menu screen & make the frames inside of the bottom, center & left HUD visible.

What is the issue?
I can’t seem to find a way to make it work, I have tried fixing it for 2 days now & I can’t find anything online and on the forums either. Everything works as intended except the play button, which is supposed to destroy the main menu frame & then show the HUD frames in StarterGui.

What solutions have I tried so far?
I have tried to look for solutions to this online & the forums but I didn’t find anything that was helpful unfortunately. I even tried to edit the Local, main menu & Loading Screen scripts to detect the play button but it didn’t work.

Script
Some parts of the script were from tutorials, I have changed them a bit to make it work the way I wanted.

Loading Screen script
image

Here’s how everything looks like in the explorer

I’m not the best at scripting so if whatever I’m trying to achieve doesn’t work, please let me know!

I hope someone finds a way for me to fix this, thank you for reading all of this!

StarterGui UIs are replciated to the players Gui replace them with

player.PlayerGui.GUI -- and continue
1 Like

I changed the script around a bit and it worked, thank you! :smile: