How to make text appear only when light is shown on it?

im attempting to have secret text only appear when the player shines their flashlight onto it, however.

ive scanned the dev forums for a solution and ive yet to find one, help would be greatly appreciated.

3 Likes

This is something you’d have to script, so change this to #help-and-feedback:scripting-support

Basically, you could make a client sided script with your flashlight, make a hitbox for the secret text and use raycasting.

Fire a remote event when the raycast goes inside the hitbox then you can do it.

Sorry if this is worded badly, I’m not good with raycasting.

3 Likes

Or the Studio Assistant in the View tab. I’ve heard both chatgpt and Assistant can give you ideas of how to do something but may not create scripts that work properly.
I’ve had Assistant give me terms in scripts that aren’t actually in Roblox Luau.

1 Like