Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is There A Way To Detect If You Can See A Shadow?

Im Making a Weeping Angel And It Is Working So Far But Sometimes If You Look Away But You Can Still See The Shadow It Disappears (like i want) Is There A Way To Detect If A Shadow Is Not Shown

1 answer

If you're using the cast shadow option on the model you have then just do

if Part.CastShadow == true then -- Rename the Part to whatever your model is called

or if you're using a custom made shadow just check to see if it exist

something like

if Part.Parent == workspace then -- Again, rename the part to whatever your model is called, and also when you clone your shadow, set the parent to workspace

2 comments

0

are you saying to just turn off castshadow on the model?

0

Well yeah.

This discussion is preserved as it was. New answers, comments, and votes are closed.