Issues with lighting

I’m currently experiencing an issue with lighting, the script which enable/disables a point light to cause a strobe effect only works constantly if a player is on max/high graphics, once a player lowers them to lets say 1-2 it’ll not work consistant.

How do I make sure a script like this shows/works for all players no matter the graphics level? Sometimes theyll freeze stuck on then eventually turn off too.

This is the script I’m using located in StarterCharacterScripts:

local rayos = workspace.EgyptSS
game.Workspace.EgyptSS.luz:WaitForChild("PointLight")
while true do
   	rayos.Foco.Top.Light.BrickColor = BrickColor.new("White")
   	rayos.luz.PointLight.Enabled = true
   wait(0.01)
   	rayos.Foco.Top.Light.BrickColor = BrickColor.new("Black")
   	rayos.luz.PointLight.Enabled = false
   wait(0.01)
end  

Any help on how to fix this would be greatly appreciated.

3 Likes

Please put the code in a code box. It starts with ``` in a seperate line.

1 Like

I don’t think this is a scripting issue as everything seems to be functioning normally. If a player lowers their graphics then it is expected that the environment around them will become “less detailed”.

There is no way to “force” a players graphic level as far as I’m aware but you can check the players current graphics level and possibly kick them if its too low. Although, I highly don’t recommend doing this as you could lose a big potential player base.

Heres an example which prints the players current graphic level:

print(UserSettings().GameSettings.SavedQualityLevel.Value) -- Prints your current graphic settings from 1 - 10

Again, I really don’t recommend that you cater to a certain group of people (those who can run a game at max graphics). What I suggest is using the info above, create a simple notification system that displays a message if the player has less then X graphics. The message could simply say “This game is better at max graphics!!”. The player can easily close this UI and still play the game if they choose to.

Anyway, hope this helps and goodluck!

Thanks for the help! Although, we’re currently featured on the front page so the kicking option would really not work well and these strobe effects are really needed for the game? Is there anyway to optimise anything so they’ll show up? Even slightly?

By any chance do you have streamingenabled on?

Just disabled right now, I’ll see any difference.

If its a local script then I’m assuming that might be why it sometimes “stops” when graphics are lowered as the part could be getting streamed out.

If this isn’t the issue then could you send a gif or a video showing whats actually happening?