Lighting being destroyed

  1. What do you want to achieve? Keep it simple and clear!
    I have a map system where when you go into the map, the sky gets changed
    (this happens localy)

  2. What is the issue?
    Now if you reset/die the sky gets destroyed/changes to the default sky
    which was not happening before

Is there a way I can prevent the sky from reseting/changing for some reason
So i dont have to detect the death and then insert the sky again ect.

When the player dies or resets, their character model in the Workspace will get completely erased. A new character model will thus be created, and the scripts in the StarterCharacterScripts folder will be cloned and pasted in the model, and replay.
However, only the character scripts get reset, which makes me assume you have the scripts that handle the sky change handled in the character scripts. I suggest moving the functions that handle the sky change over to the StarterPlayerScripts, which should remain even after dying.

1 Like

its in replicated first but im lookin into it again rn i think its actually my fault

eh it was my fault i fixed it but ur answer is really smart so if other ppl have a similar problem they have a solution

1 Like

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