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

How to make a floatable part?

Asked by
Anto3oo 13
5 years ago

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!

0
smh Ziffixture 6913 — 5y
2
use y velocity DeceptiveCaster 3761 — 5y
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' Vulkarin 581 — 5y
0
anchor it EpicMetatableMoment 1444 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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.

0
ok thancs! Anto3oo 13 — 5y
Ad

Answer this question