Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

Log in to vote
0
Answered by
Desmondo1 121
3 years ago

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

0
are you saying to just turn off castshadow on the model? nathanjohns123 20 — 3y
0
Well yeah. Desmondo1 121 — 3y
Ad

Answer this question