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

How do I disable swimming with water terrain? How do I spawn in water?

I have two questions, how you disable swimming and how you spawn in water. For the first question, how to disable swimming, I just want the player to ignore the water and act like it is air. They see the water, but do not come in contact with it. With the second question I am just confused that player spawn is in the water but then when I start the game I spawn on top of the water. I want the character to spawn in the water and not to be able to swim up.

1 comment

0

You can aslo create a part with CanCollide off and water texture...

1 answer

✓ Accepted answer
local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char:WaitForChild("Humanoid")
	 
hum:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)

1 comment

0

And if you need spawn in water you need teleport player's character directry to SpawnPosition

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