Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can i make a local lighting?

Asked by 7 years ago

I just want to know on how i can make a certain player's lighting only for them to see not others so lets say if they wanna change the timeofday only for them it does it but not for the others. I dont know if theres a certain method or function.

3 answers

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

Filtering enabled

FilteringEnabled allows you to make changes to your game environment with a local script, without any of those changes replicating to the server (for other players to see), making it completely visible to that individual client only.

This is incredibly useful for so many different reasons. For one, it prevents local exploits from replicating to other clients, which is what FilteringEnabled is most famous for. But also because you now have the ability to have a completely private world, and a shared one at the same time.

Implementation

The best part about it, is how easy it is to use! Simply enable FilteringEnabled in your game (it's a property of workspace), and just change the properties of Lighting with a local script. The player who's local script is changing the lighting, will be the only player that sees the changes.

Sources

I've answered a similar question to this before, that you can find here.

You'll also need to know a bit how remotes work if you're going to be using FilteringEnabled, since it stops local scripts from being able to make changes to the server directly. But this isn't a problem at all. In fact, I go over everything about remote events in this video.

If you have any questions, just let me know!

Ad
Log in to vote
1
Answered by 7 years ago

This would require FilteringEnabled and editing Lighting with a localscript in the PlayerGui.

Log in to vote
0
Answered by 7 years ago

FilteringEnabled, lighting(Editied), Local Script (Player GUI)

Answer this question