So I'm doing a camera GUI idk how to set the camera back to normal with a button.
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent:WaitForChild("Frame").Visible = true
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Frame.Visible = false
end)
end)
end)
