I'm trying to make water but I don't know exactly how to make someone float when they touch the water or anything really. I tried cloning body velocity into their character when you touch the water but it didn't work. I assume you need a function, but that is all I basically know. Here is a script of a idea I thought would work:
while wait(1) do wait() function Swim() E = script.Parent.Parent.Parent.BodyVelocity:Clone() E.Parent = game.Players.LocalPlayer wait() E.velocity = game.Players.LocalPlayer.Velocity + Vector3.new(0,3,0) end function StopSwimming() game.Players.LocalPlayer.BodyVelocity:Destroy() end script.Parent.TouchEnded:connect(StopSwimming) script.Parent.Touched:connect(Swim) end
This is all in a local script!
This is all in Server storage if you wanted/needed to know. For more info just question the question..... xD
Please help?
http://wiki.roblox.com/index.php?title=Gravity This might point you in the right direction. Try increasing the body force velocity the lower into the water you get?