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

How to make camera view go through non cancollide blocks?

Asked by 7 years ago

Im making a obby and I have a path set up to allow players to choose from 3 paths and I had some testers say "My camera dosent go through the path thats right" can someone help me with a script to allow camera view through non cancollide parts?

1 answer

Log in to vote
0
Answered by
Ocula 40
7 years ago

I can't think of a way to block the camera from going through a part (as there isn't really anything you can do, unless you create a custom camera), but I can think of a way around this problem.

Have all of the part's CanCollide properties set to false and create a script inside the path that is right that changes the CanCollide property to true. That way, the camera will go through all the parts until the right one is touched.

If you need any help creating the script, let me know!

Have a nice day, Ocula

0
Yes, I would like assistance. TacklessSix5 7 — 7y
0
What you want to do is add a Script (Advanced Objects > Script) into the Part that you want to become CanCollide. You write in the script: `script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then script.Parent.CanCollide = true delay(6, function() script.Parent.CanCollide = false end) end end end)` Ocula 40 — 7y
0
Idk if im forgetting something, can you come do it for me? TacklessSix5 7 — 7y
Ad

Answer this question