#workarounds to .touched only working with at least 1 unanchored part

1 messages · Page 1 of 1 (latest)

errant gazelle
#

so basically i got these expanding explosions right? they use the .touched event and i have barrels that can be exploded by damage and explosions. the problem is that either the part with the .touched event and/or the part that is touched has to be unanchored and both can't, so i figured that i'd just attach the explosion to an anchored part using a weld, but that didn't work and it seemingly carried the property. i also tried motor6ds, but that had the same result.

how might i make sure a part doesn't move or rotate while unanchored?

obsidian kraken
#

if you really think you NEED the touched event then you can consider using bodyposition / bodygyro

dapper hinge
#

BodyPosition and BodyGyro could work

#

But Touched event is kinda booty tbh, you can look into these methods

ruby crag
#

Did you try weldconstraint cause i remember i used a regular weld for this and it just didnt work. But then i used a weldconstraint and it work

errant gazelle
ruby crag
#

Wdym didnt work? like they didnt stick together or what

errant gazelle
#

it stayed in place, but it didn't work on anchored parts

ruby crag
#

But the unanchored part stayed in place?

#

Isnt that good

errant gazelle
#

the .touched event doesnt work when both the parts are anchored

#

no clue why, but thats just how it is

#

so i was trying to find a way to keep an unanchored part in place without "anchoring" it

ruby crag
#

Does the weldconstraint do that

vestal arrowBOT
#

studio** You are now Level 7! **studio

ruby crag
#

I mean it should

#

If you connect it to an anchored part and connect it properly

#

Just connect it to an invisible anchored part

errant gazelle
#

it seemingly inhereted the anchored property of said invisible anchored part

ruby crag
#

Ohh thats what you mean

#

Are you sure that a part has to be unanchored for the .touched event to work?

errant gazelle
#

yep

#

ive done a ton of troubleshooting

#

it only works when either what it's touching or the part with the event is anchored or both are unanchored, never all anchored

ruby crag
#

Oh okay

#

I mean thats just because neither are moving

#

I mean i dont really know what your doing but maybe you can find a different way

errant gazelle
#

thats the whole point of this man😭

ruby crag
#

Like if something triggers a barrel, you can make a separate event for that

#

Yeah but like dont use .touched use something else

#

to trikgger barrels

#

afk