Hello!
I’m having such as CurrentCamera.CFrame problem but I dont know what do I need to do to fix it
I already tried:
Changing the camera type to Enum.CameraType.Scriptable
Getting the currentcamera CFrame
I hope you can help me,
The problem:
the camera get back to a “default camera position” and I’m trying to change the Player.Character without the camera going to the “default camera position”
default camera position meaning:
this is a screeshot to show where are the scripts and remotes:
(I’m new at the devforum and thats why I wrote the script in the preformatted text)
Script:
game.Players.PlayerAdded:Connect(function(player)
repeat wait() until game.Workspace:FindFirstChild(player.Name)
wait(10)
game.ReplicatedStorage.Zombie:Clone().Parent = workspace
game.Workspace.Zombie.HumanoidRootPart.CFrame =
player.Character.HumanoidRootPart.CFrame
player.Character = game.Workspace.Zombie
local morph = game.Workspace.Zombie
game.ReplicatedStorage.Camera:FireClient(player, morph)
end)`’
LocalScript:
game.ReplicatedStorage.Camera.OnClientEvent:Connect(function(morph)
game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
wait()
game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
game.Workspace.CurrentCamera.CameraSubject = morph.Humanoid
end)
Script (photo):
Local Script (photo):
Can you help me with that problem?