-
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. -
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:
- 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.