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

Lava Script Help? [closed]

Asked by 10 years ago

Can someone give me a lava script? I have no idea of how to script.

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 10 years ago
function onTouch(part)
    p = part.Parent:FindFirstChild("Humanoid")
    if(p ~= nil) then
        p.Health = 0
    end
end

script.Parent.Touched:connect(onTouch)
Ad