Detect Player when Touching Sunlight

Hello! I am trying to make a game and I really need help with this one. I want to make a script that kills the player when they touched the sunlight. They must hide in the shadows or dark place where there’s no sunlight. I’d appreciate the help and I’ll credit anyone who can help me with this one. Thank you!

You could make parts that are only in the shadows and if the player isn’t touching it then they die or the reverse way around

A quick forum search should be all you need:

It has not been solved yet; the OP still needs help.

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