Hello, i would like to know how i would check if a player or player's character got in contact with an explosion, because i'm currently trying to implement a gibbing system in my game.
COMMUNITY QUESTION
How would i check if a player's character has gotten in contact with an explosion?
1 answer
explosion.Hit:Connect(function(part, distance)
print("helo, my name is", part.Name, "i have been hit by explosion, very bad, the distance from me and the epicenter of the explosion was", distance, "studs, very bad")
if part.Parent:FindFirstChildWhichIsA("Humanoid") then
print("oh no player got in contact with explosion!!!!, player character:", part.Parent.Name)
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
i feel embarassed by this answer
I glad to help
what are you waiting for? accept his answer