Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would i check if a player's character has gotten in contact with an explosion?

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.

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)

3 comments

0

i feel embarassed by this answer

0

I glad to help

0

what are you waiting for? accept his answer

This discussion is preserved as it was. New answers, comments, and votes are closed.