Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
tanzane 100
10 years ago

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

Log in to vote
0
Answered by 10 years ago

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?

0
Eh, the link you provided is invalid. tanzane 100 — 10y
Ad

Answer this question