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

How do I burn players with lava?

Asked by
1x5x2 0
8 years ago

I want the smooth terrain lava to kill a player when they step on it. How do I do this?

I tried this:

workspace.Terrain.Touched:connect(function(Hit)
    if Hit then
        if workspace.Terrain:GetCell(Hit:GetTouchingParts()[1].Position.X, Hit:GetTouchingParts()[1].Position.Y, Hit:GetTouchingParts()[1].Position.Z).Material == Enum.CellMaterial.CrackedLava then
            Hit:remove()
        else
            print('Lol. You aren\'t lava! You a wannabe!')
        end
    else
        print('THIS IS IMPOSSIBLE!!!')
    end
end)
0
If it is too hard, just a use a transparent bricks over the smooth terrain lava. Grenaderade 525 — 8y

Answer this question