Hey all, good day to you. I was going to make a Custom Character Switching System between 2 different characters, however whenever I attempt to set the Player’s camera to be the new Humanoid of the player, it does not work. I’ve tried waiting a few seconds, but still nothing. I have become frustrated with this and am very confused as to why this doesn’t work.
No problem, but instead of using remote events to change the camera, try removing them and adding this to your LocalScript:
local player = game.Players.LocalPlayer
player:GetPropertyChangedSignal("Character"):Connect(function()
if player.Character then
game.Workspace.CurrentCamera.CameraSubject = player.Character:FindFirstChild("Humanoid")
end
end)
I think I know what’s happening here. Try passing the new character’s humanoid as a parameter in the remote event function and then set the camera subject as it.
This function probably executed during the transition when the character was switching.
That didn’t work either, but I think I have a better understanding. I just tried to print something in the RemoteEvent function, however it did not print. This means that A, the RemoteEvent is firing but the client isn’t picking it up, or B, that the client picks it up but isn’t firing the function.
Have you tried putting these events in StarterPlayerScripts? I don’t know how does your system works, but I’m pretty sure the error envolves the script location.