I'm trying to make a menu screen for my game. I tried making it so when you ckick a button, the camera changes to your defualt camera. Ex: You click a button gui and then the button dissapears and the menu camera gets deleted. I tried doing this but it wont work? Click to close menu Code:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent:Destroy()
game.StarterPack.LocalScript.Disabled = true
end)
Camera Code:
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.Camera1.CFrame
If you can help, please do.
