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

ClickDetector hitbox expanding. Is it a bug or can it be fixed?

Asked by 4 years ago

Hello. I am making a door which has multiple ClickDetectors in it. I'm having a problem where the ClickDetector that is in the body of the door (meant for knocking sounds) is overlapping with the ClickDetector that is in the knob of the door (meant for opening the door). This does not happen while testing in Roblox Studio. It only happens when trying to open the door ingame in first person (third person works). Is there a fix to this or is this a ROBLOX bug?

2 answers

Log in to vote
0
Answered by 4 years ago

It's probably because your door handle is a mesh and the size is bigger than you think it is. Try to size everything properly and make sure you code knows the difference between each click detector.

0
I don't have any meshes, only parts and unions. The code works. The bug only appears in first person, when testing ingame. First person works in Roblox Studio testing mode. Also the problem is that when I try to open the door I knock instead, even though I am clearly clicking on the knob. vonotige 49 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

You can instead create transparent parts that contain the ClickDetector. This will allow for accurate position manipulation but will make the game a tiny bit laggier.

Answer this question