I have no idea why, but the camera changes to follow the player and the menu disappears for a split second, then the camera reverts back and the menu reappears again. Probably an issue on Roblox's end, though.
local gui = script.Parent
local anglePart = workspace.AnglePart
local camera = workspace.CurrentCamera
wait(0.5)
camera.CameraType = "Scriptable"
camera.CFrame = anglePart.CFrame
gui.MouseButton1Click:Connect(function()
camera.CameraType = "Custom"
camera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
gui.Parent.Parent.Stats.Enabled = true
gui.Parent.Parent.DinoInfo.Enabled = true
gui.Parent.Parent.LifeStats.Enabled = true
gui.Parent.Enabled = false
end)

1 comment
Try also adding gui.Visible = false (make the frame invisible)