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

How to make a brick disappear when you don't look at it?

How do you make a brick disappear when you don't look at it? I've tried look vector, but I don't really know how to use it.

1 answer

Haven't done this myself, but might be able to draw a ray or raycast to do a "line of sight" test and essentially the ray will run into an object, and if it does so you can make it visible.

You might find this useful to create a Ray (from wiki)

Ray.new(Vector3 origin, Vector3 direction)

1 comment

0

ok, ill try this later

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