Lighting Shadow Doesn't Work

so i made a module that use roblox lights to make some realistic light but when i layered the lights the shadow on other lights don’t work if your confused its like 5 pointlights put inside the part and one of them work even and the rest don’t work tho all of them are shadow enabled like in this image

and this is how is supposed to be :

Screenshot 2023-11-12 100900

if u think there another way to fix this please let me know
and if your questions are:

why u need layers or lights instead of 1
try duplicating the part
are they enabled
what’s the inside of the script?

#1 cuz its more realistic than one light souce here’s the samples:


with lower light range:


image

only one light source
image

#2 yes already tried same result the shadow don’t work except for one of them this is the result

#3 yes all of them are enabled

#4 this is the inside of the script

local ez = require(game.ReplicatedStorage.EzScriptX) 
local part = workspace:WaitForChild("Sphere")

local lighttest = ez.CreateLight(5,"PointLight",part,1,50,50,true,Color3.new(0.6313725490196078, 1, 0.43137254901960786))

lighttest:EnableLight() 

What is a “layered light?”

I am very confused. Also use punctuation.

1 Like

I believe the OP means “Putting multiple light sources in a single part”

Except the problem is, when you put multiple light sources in a single part (or perhaps the same co-ordinate), their shadows just break.

The first-most light source in a part will emit shadows just fine, but any sources added on top of that will have non-functioning shadows.

I believe this is a long-standing bug with future lighting.

1 Like

Interesting, I’ve used the same technique for light drop off, but I didn’t encounter this issue.

1 Like