Hey so i made a main menu test and my friends were experiencing some glitches such as camera glitching out or gui not showing after respawn. Sometimes the Camera is just not on the player after i switch game.Workspace.Camera.CameraType to custom. The main issue i'm experiencing is gui not showing up after death. Just nothing.
What it's supposed to show:
https://prnt.sc/uq5nr1
Camera glitch:
https://prnt.sc/uq5olr
The GUI glitch:
https://prnt.sc/uq5pqn
I wonder if there's any fix to that. I can provide the code i use if you just ask.
Also, i put in the console game:GetService("StarterGui").ResetPlayerGuiOnSpawn = true, it didn't work. I made sure the property "ResetOnSpawn" is set to true and i still experience the same issue.
The code:
local camera = game.Workspace.CurrentCamera
local player = game.Players.LocalPlayer
repeat wait(.1) until player.Character.Humanoid.Parent ~= nil
game.Lighting.Blur.Enabled = true
camera.CameraType = "Scriptable"
camera.CFrame = game.Workspace.Camera2.CFrame
player.Character.Humanoid.WalkSpeed = 0
player.Character.Humanoid.JumpPower = 0
script.Parent.Parent.Visible = true
player.Character.HumanoidRootPart.CFrame = game.Workspace.Tel.CFrame
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
repeat
wait(.05)
script.Parent.Parent.Parent.dark.BackgroundTransparency = script.Parent.Parent.Parent.dark.BackgroundTransparency - .01
until script.Parent.Parent.Parent.dark.BackgroundTransparency <= 0
wait(1)
game.Lighting.Blur.Enabled = false
script.Parent.Parent.Parent.dark.BackgroundTransparency = 1
player.Character.HumanoidRootPart.CFrame = game.Workspace.Tel2.CFrame
game.Workspace.Camera.CameraType = "Custom"
player.Character.Humanoid.WalkSpeed = 16
player.Character.Humanoid.JumpPower = 50
end)
script.Parent.Parent.Customize.MouseButton1Click:Connect(function()
game.Lighting.Blur.Enabled = false
script.Parent.Parent.Visible = false
camera.CFrame = game.Workspace.Camera3.CFrame
script.Parent.Parent.Parent.Parent.Customize.Frame.Visible = true
player.Character.HumanoidRootPart.CFrame = game.Workspace.Tel3.CFrame
end)

11 comments
Instead of workspace.Camera use workspace.CurrentCamera
Also please provide code
I tried workspace.CurrentCamera, the same results.
How do people mess up indentation when studio does it for them
After setting to "custom" you might also have to set the target
And how do i do that?
Wait one more thing, is this in script or localscript
localscript
I got to go, tommorrow i'll review your help to see if it patches anything.
Do you have discord
Papsterek#2999