Camera stuck on respawn

So I’m creating an Character Customisation Gui where players can create an avatar In-Game. Before i added this, the camera worked perfectly fine. Now whenever the player respawns the camera get stick and I cant move it around. Does anyone know how to fix this issue

  • Due to the ragdoll script it sets the CameraSubject to UpperTorso. But upon respawning it doesn’t change back to Humanoid. I’m not sure if this is what the issue is but i tried removing the section of the script but has no changed Behaviour.

Picture of broken Camera:
image
(On the far right is where the camera is supposed to be, but its just stuck)

Could you show me the script btw, is there any errors in the output or somthing if there is maybe send a pic of the output!

There’s so many scripts, What one do you wish to see? There’s no errors in output logs at all

Hm the script that you worked on and doesen’t work.

The thing is, the camera for Customisation works and it brings the camera back to the player when they are done, but when they respawn the camera is stuck.

1 Like

i have tried to set camera back to humanoid on a LocalScript inside of StarterCharacterscripts. I can show you this one

local char = script.Parent
local CC = workspace.CurrentCamera

game.Players.LocalPlayer.CharacterAdded:Connect(function()
	CC.CameraSubject = char.Humanoid
end)

this script dosent work and dosent output anything.

1 Like

Could you maybe rec the gameplay and the camera that won’t work, i need to see why the camera won’t work :confused:

Here’s a screen recording of gameplay.

image
This is also a Screenshot of the Camera Properties after respawning:

EDIT: Nothing was outputted other than “Video recording stopped”

Is it published ??, if it is could you give me the game link and i can test if the camera well also be stuck for me or not!

No its not published. its only getting fully released when everything is fully complete.

I suggest instead you just freeze the camera when the player dies (ragdolls), so no camera subject is changed.

Make sure when the player resets that they’re CurrentCamera is set to enum.Custom. Any other camera type might screw up the game.

Edit: Just looked at the picture you posted above, the CameraType property you showed is set to Scriptable. That means the camera will stay in place unless told otherwise by a script. When the player resets, the property doesn’t go back to default, so you have to change it back to Custom by yourself.

3 Likes

So should i set it to enum.Custom?

1 Like

thanks i set it to custom an it seems to work

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.