Well, I'm not even sure somthing like this is real... So, like a hit there can be a way to check how hard it hit?... I'm trying to make a car that explodes after HARD hits not simply a player walking into it..... Please help me?
With a Touched
event, you need to get the force of the part that touched!
The formula for the force of an object is Velocity * Mass.
To get the Velocity of an object, you need to index the Velocity
Property of the object.
To get the Mass of an object, you need to use the GetMass
function.
part.Touched:connect(function(hit) local Xforce = hit.Velocity.X * hit:GetMass() local Yforce = hit.Velocity.Y * hit:GetMass() local Zforce = hit.Velocity.Z * hit:GetMass() end)