Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I detect if a Humanoid comes in contact with Terrain?

Asked by 7 years ago

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^^

0
Try if hit.Name == "Terrain" then OldPalHappy 1477 — 7y
0
How do I tell if it is water, then? laughablehaha 494 — 7y
2
humanoid states, Swimming. RubenKan 3615 — 7y
0
ok laughablehaha 494 — 7y

Answer this question