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

How To Make You Float On/In A Brick?[Unsolved]

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?

1 answer

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