generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: The TouchEnded event

Previous Thread :: Next Thread 
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
21 Jul 2012 08:56 AM
The TouchEnded event doesn't fire in certain cases, like when a part is deleted or when a player respawns while touching another part.

This is currently preventing me from advancing in a certain project...
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
21 Jul 2012 08:59 AM
In fact, this makes the TouchEnded event entirely useless...
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
21 Jul 2012 09:00 AM
inb4brandon
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
21 Jul 2012 09:13 AM
That's when you use bounding boxes and a 'IsOver' function that uses math. Hurrah!

ROBLOX will fix it later.
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
21 Jul 2012 09:15 AM
Complain to roblox :O?
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
21 Jul 2012 09:16 AM
I don't want to use math.

I just want an event that works.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
21 Jul 2012 09:23 AM
But the event doesn't work.

So I used math.
Report Abuse
8SunTzu8 is not online. 8SunTzu8
Joined: 30 Sep 2011
Total Posts: 8199
21 Jul 2012 09:25 AM
Hmm...

I just tried using the event yesterday, didn't work for what I needed it for. :/

I don't think it can really work if the other part was deleted, unless you knew the part was there beforehand. I don't even know how to use this event, but it makes sense.

"Improvise, Overcome, and Adapt." -Captain (RIP)
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
21 Jul 2012 09:27 AM
Just add parts that touch to a table, then use FindPartsInRegion3 to see if they're still there.
Report Abuse
8SunTzu8 is not online. 8SunTzu8
Joined: 30 Sep 2011
Total Posts: 8199
21 Jul 2012 09:28 AM
^

I was talking to a friend who referred to regions...

I tried finding it on the wiki, but couldn't. Thanks, :p Anyway, I would have suggested it, but I don't know what it is or how it works, only what my friend is using it for.

"Improvise, Overcome, and Adapt." -Captain (RIP)
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
21 Jul 2012 11:05 AM
TouchEnded shouldn't be that hard. You should connect the event inside the .Touched event.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
21 Jul 2012 11:25 AM
That event doesn't work...


~Friends are like potato chips, you eat them they die.~
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
21 Jul 2012 11:30 AM
Use a table, then for all your cases it wasn't found, make something for workspace.DescendantRemoving, make something for player.CharacterAdded (if the first one doesn't already fix this.)

8)
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
21 Jul 2012 11:42 AM
@xXxMoNkEyMaNxXx

Out of all the suggestions suggested in this thread, yours is the one I actually prefer.

Yet, what I still think would be best is if they just fixed the event to work correctly.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
21 Jul 2012 11:56 AM
It would be nice for them to fix it, but I'm still waiting on a fix from 6 months ago that I'm sure would be quite easy to fix.

Like, when a player dies, fix the camera type, and stuff....

Let's just put it this way: Just make your own solution if possible, and when ROBLOX fixes, you fix.
Report Abuse
ColorfulBody is not online. ColorfulBody
Joined: 17 Jun 2012
Total Posts: 2353
21 Jul 2012 06:39 PM
But I don't want to make my own solution, I want them to fix it!

I know I could easily find a solution, but I still want them to fix it. :(
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
21 Jul 2012 11:27 PM
"but I'm still waiting on a fix from 6 months ago that I'm sure would be quite easy to fix. "
I wouldn't be so sure about that, I can totally see how it could end up being a really hard problem to fix.

@OP:
Yup, TouchEnded is useless, I found that much out while making DM17 and trying to use it to track when the character was standing or running along the ground. distance checks + raycasting are you best bet if you really need to be sure of contact with objects.
Report Abuse
XX619 is not online. XX619
Joined: 22 Dec 2011
Total Posts: 37
22 Jul 2012 12:42 PM
rgegerg3df
Report Abuse
RA2lover is not online. RA2lover
Joined: 09 Nov 2008
Total Posts: 1254
22 Jul 2012 03:24 PM
make them connect .Removed events on touch and disconnect them on TouchEnded
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
22 Jul 2012 07:11 PM
"make them connect .Removed events on touch and disconnect them on TouchEnded"

That won't help. They are sometimes unmatched even when the hierarchy remains constant.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image