I just want to know how I can launch a touched event with terrain, like water.

Humanoid = script.Parent

Humanoid.Touched:connect(function(hit)
	if hit:IsA("Terrain") then
		print('hit a terrain part')
	end
end)

How do I do this my attempt above this^^

4 comments

0

Try if hit.Name == "Terrain" then

0

How do I tell if it is water, then?

2

humanoid states, Swimming.

0

ok