I wonder if it's possible to prevent players from swimming in terrain water?
✓ ANSWER ACCEPTED
Is it possible to prevent players from swimming?
1 answer
✓ Accepted answer
Yes, it is possible. You can use the SetStateEnabled function of the Humanoid. The first argument is the state to the be altered, and the 2nd is a bool to enable or disable it. Setting it to true will enable it, setting it to false will disable it.
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
This discussion is preserved as it was. New answers, comments, and votes are closed.
