Yue Posted April 6 Posted April 6 local foco = world:Get():GetTaggedEntities("Foco") if #foco > 0 then local foco= foco[1] foco:SetShadowmapSize(2048) Print("🎥 Foco Encontrado") else Print("⚠️ No se encontró ninguna entidad con el tag 'Foco'") end Quote
Solution Josh Posted April 7 Solution Posted April 7 In your code, foco is an entity, not a light, because GetTaggedEntities() returns an Entity object. You need to cast it to a light like this: light = Light(foco) 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.