TouchInterest not being created/Touched event not working

Have you tried creating them manually?

maybe try turning can query on

I dont think if that is the issue

Collection service would be a good alternative. I can’t really find a solution now since I’m on mobile.

Also make sure they’re archivable, because if they aren’t, scripts can’t identify them.

You cannot manually create Touch Interests

Yep, they’re archivable but the issue persists

It is likely that your

is not built right. Maybe try to use it without the custom StarterCharacter, and see if the touch event is registering it?

CanQuery doesn’t effect touched events, I also tried it and it doesn’t effect the outcome

The issue is, I’ve tried removing the StarterCharacter and the issue persists, it’s not creating the touch interest, which means it isn’t even registering the Touched event

Huh…

One thing though, is the part anchored? Because according to the image you provided, it seems to have CanCollide disabled.

The parts are anchored, can collide is off as it’s just a detector. Can collide isn’t needed for touched events however.

Try to add another part in the workspace(and add a script that directs to that part with the Touched signal), and just anchor it, disable CanCollide, and CanQuery. Let me know if it works.

Yeah that worked for some reason, not sure what the difference is between the two as both should be working the same as they both have the same layout.

Maybe remove

and try again. I don’t think this would affect the for do loop.

Yeah that wouldn’t change anything, I just added a script to the normal zone part and that seems to be working/creating the touch interest.

I’m gonna try and just create script under each zone and see if that will work.

I don’t recommend you to use touch events, as these are somewhat buggy, either they don’t detect the touch, or they detect it and call it multiple times, which can cause bugs in your script.

I’ve just created a script under the zone instead of using a loop/handler in my main script and that seems to be working, I’ll use this method whilst I work on a more permanent method.

Thanks for all the replies to my post!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.