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

How to make a floatable part?

Hey ! im here again , and i want a part (its supposed to be lava) if you touch it then damage you but the problem is that i want it to maybe make the person who is in the lava float in the lava because right now i cant do that , it feels just weird just having it non collided , i have the idea maybe changing the gravity to low while in the lava , but i cant do that , help?

function onTouched(hit)
	if hit.Parent:findFirstChild("Humanoid") then
		hit.Parent.Humanoid:TakeDamage(1) wait = 1 and hit.Parent.Humanoid:TakeDamage(1)
	end
end

script.Parent.Touched:connect(onTouched)


Thanks if answered!

4 comments

0

smh

2

use y velocity

0

can't you just have fake non collidable lava and then a bit lower make a real collidable damaging part, thus making them 'float in the lava'

0

anchor it

1 answer

✓ Accepted answer

Maybe you can make the lava non collidable then below it add a block that can collide, (its not really floating but it kinda looks like it.)

Hopefully this helps.

1 comment

0

ok thancs!

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