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

How can I make a local touch function?

Asked by 3 years ago

So I'm trying to make a destructible object that only breaks locally, but my issue is I can't seem to figure out how to make a local script recognize an object that your character touches. I'm a total Lua noob, so any help would be much appreciated!! :)

1 answer

Log in to vote
0
Answered by
NGC4637 602 Moderation Voter
3 years ago
Edited 3 years ago

At StarterPlayerScripts, add a local script that simply will (insert part here):Destroy() whenever the part gets Touched. To detect if something is touched, you can use the (insert part here).Touched event. Sadly, this ain't a request site. So you should figure out the script yourself. You can search for some info at the API reference or Lua 5.1 Reference Manual

0
You realize he want's to recognize collision...? Ziffixture 6913 — 3y
0
oh, lemme redo that lol NGC4637 602 — 3y
0
I appreciate the help! I'll see what I can do with your information. antazma 8 — 3y
Ad

Answer this question