How would I make my main menu UI not reappear after I morph?

  1. What do you want to achieve? Keep it simple and clear!
    Basically, I have a main menu set up, where if you press play, it takes you to a character select area. Upon selecting a character, the main menu UI reappears, and I want to fix that.

  2. What is the issue? Include screenshots/videos if possible!
    As I said, upon selecting a character, the main menu UI reappears, and I don’t want that.

A video of the issue:

  1. What solutions have you tried so far? Did you look for solutions on the Creator Hub?
    I’ve tried to disable the ResetOnSpawn, but it’s incredibly against what I want, since every time you die, you go back to the main menu to choose another character or mess with settings, maybe. I’ve also tried disabling the UI upon morphing, making it invisible upon morphing, and parenting it to something else where it can’t be seen, but they didn’t seem to work.

Here’s my morphing script in case it’s needed. (It’s in ServerScriptService)

game.ReplicatedStorage.CharChange.OnServerEvent:Connect(function(player,model)
	local char = model:Clone()
	local savename = player.Name
	local pos = player.Character.HumanoidRootPart.CFrame
	char.Name = savename
	player.Character:Destroy()
	player.Character = char
	char.Parent = workspace
	char.HumanoidRootPart.CFrame = pos
	model.GUIs.GUI:Clone().Parent = player.PlayerGui
end)

Here’s the name of my UIs:
Menu (ScreenGUI)
MainMenu(Frame)
Play(Button)
Characters(Frame)
Characters(Scrolling frame)
Infecteds(Scrolling frame)
Zizzy/Doggy/Georgie/Willow/TheDecayed(Buttons for the characters)

I’d like to fix this without disabling ResetOnSpawn as it’s incredibly against what I want, so please help me.

1 Like

Maybe disable the ScreenGUIs ResetOnSpawn property?

“I’d like to fix this without disabling ResetOnSpawn as it’s incredibly against what I want…”

I want it so that you can re-access the main menu after dying, so you can select another character or mess with the settings.

OH sorry i didnt read the whole message :sweat_smile:

i would make a counter to see how many times you’ve died and if it has the value of 1 just dont show the UI and if the number is 2 just reset the counter and Show the UI

I don’t exactly understand what you mean. The issue begins when I morph my character; instead of the main menu going away, it resets/reappears.

And I’ve also tried to mess with the server script to disable the UI after morphing, also did not work.

OOPS, never mind, I just had to do an “if player.Character == char then” to fix it, I’m so sorry for wasting your time!

Oh well my idea was very diferent from what you had there but im glad you fixed it!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.