Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does this only work the first time the player spawns but not after that?

This script is supposed to make it so when someone (re)spawns it makes their camera go to the character selection room but it only works the first time they spawn! Not respawn!

here is my script

gravityPercent = 50

game:GetService("Players").PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function()
Workspace.Camera.CameraSubject = script.Parent.CameraPart
end)
end) 

Please help!!! Thank you!!! [Edit] Forgot to put script up there!!! So sorry!

2 answers

The script should change CurrentCamera not Camera, as a new Camera instance is made every time somebody respawns. However, you're only allowed to use CurrentCamera with a LocalScript

I think the problem here is that you're using PlayerAdded, which is triggered when a player enters the server. I don't remember how to check if a character dies.

1 comment

0

if you figure out what it is please tell me! Thank you!!!

This discussion is preserved as it was. New answers, comments, and votes are closed.