of     1   

Lukekneenew
#97683367Tuesday, May 14, 2013 7:29 PM GMT

This would get how much light there is at a position. (0-1000) This could help for games where a monster or something would only spawn at positions with low light. pos is a Vector3. Example: if game.Workspace:GetLightLevel(Vector3.new(0,0,0)) < 30 then local g = game.Lighting.Slime:Clone() g.Parent = workspace g:MakeJoints() g:MoveTo(Vector3.new(0,0,0)) end
coplox
#97684005Tuesday, May 14, 2013 7:38 PM GMT

I think it should instead return 0 to 1 of the light level, makes it more consistent with the other features. It should also return a Color3 of the color of the light at the location.
evev3
#97686307Tuesday, May 14, 2013 8:07 PM GMT

i'm making a game where there's a spotlight and you hide form it, and if you get caught in the light, you fry. this could be useful, but what i had in mind was using short-ranged raycasting...
Lukekneenew
#97761871Wednesday, May 15, 2013 7:24 PM GMT

@coplox, yeah good idea. Or the light color thing could be a different method.

    of     1