Scripting a Puddle Slip

How could a script a puddle to make players “slip” on it when they walk over it? I’ve seen in many games where you walk over a spill, and my character sits and falls. How would I do this?

This is extremely simple. Just get a function to make the character sit when touched.
Example kind of but not giving answer completely away

script.Parent.Touched:Connect(function(hit)
-- insert a variable to find the humanoid
-- note - hit is the part that touched it, so when a character touches it hit.Parent will get the character

(humanoidvariable).Sitting = true -- or something like that, check humanoid properties to see what to do to make it sit
end)
3 Likes