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

this script that fixes the camera only works once, any way to fix this?

in my game, you will deploy and it will change the camera, if you die in game, the script below would fix the camera, but it only works once.

local plr = script.Parent.Parent

plr.Character.Humanoid.Died:connect(function()
	local clone = script.CameraScript:Clone()
	clone.Parent = script.Parent
	clone.Disabled = false
end)

4 comments

0

Where is the script located?

0

starter player

0

If the camerascript is in the StarterPlayer, why do you need to clone it? It doesn't disappear if the player dies?

0

it gets replaced with another script when a game starts, therefore I clone it when a player dies so it can reset the camera

1 answer

✓ Accepted answer

Try to put the "CameraScript" into the StarterCharacterScripts.

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