Okay so I've tried SO MANY different scripts for this but nothing seems to work....
I want a part to fall when it is touched by another part (a ball to be exact; it is the bullet that is shot out of a gun, but it disappears after a few seconds). Anyway, for whatever reason the part refuses to fall when touched by the ball, and i have no idea why! The output never says anything is wrong, and I am at a loss to what the problem is here.
Here is the most recent script I've used:
Workspace.Spark.Touched:connect(function(part) if part.Name == "Fallpart" then part.Anchored = false end end)
I really appreciate any help!
What your script does it that when the part Workspace.Spark
is touched by Fallpart
, Fallpart is unanchored. Should it not be the other way round ?
theStaticPart.Touched:connect(function() theStaticPart.Anchored = false end)
You're going about this incorrectly.
You will want the script to be in the part that gets touched by the spark, because that's where the Touched event fires more reliably.
So put this script in the Fallpart.
script.Parent.Touched:connect(function(hit) if hit.Name == "Spark" then script.Parent.Anchored = false end end)