[SOLVED] Putting it in StarterGui.
I found this script where you can't swim in terrain water
local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:wait() local hum = char:WaitForChild("Humanoid") hum:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
It works, but whenever I reset, it doesn't work anymore. Any help?
do a while wait() loop.
local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:wait() local hum = char:WaitForChild("Humanoid") while wait() do hum:SetStateEnabled(Enum.HumanoidStateType.Swimming, false) end
I fixed it by putting it in StarterGui, but thanks for the people that tried helping.