I am making a thing where you switch to different points of view but for some reason when I switch the point of view to the dummy I am no longer able to see myself. I have no idea how to fix this or what is wrong someone help please.
https://gyazo.com/3fe76d28f0d5e74f128427aaa1e40f47
local UserInputService = game:GetService("UserInputService")
local camera = game.Workspace.CurrentCamera
local player = game.Players.LocalPlayer
local RunService = game:GetService("RunService")
local CT = false
local Before = nil
RunService.Heartbeat:Connect(function(step)
if CT == true then
camera.CFrame = head.CFrame
end
end)
UserInputService.InputEnded:Connect(function(input, processed)
if processed then return end
if input.UserInputType == Enum.UserInputType.MouseButton3 then
if CT == false then
Before = camera.CFrame
head = game.Workspace.Foes.Dummy.Head
camera.CameraType = Enum.CameraType.Scriptable
CT = true
else
CT = false
camera.CameraType = Enum.CameraType.Follow
camera.CameraSubject = player.Character
camera.CFrame = Before
end
end
end)