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

Can someone teach me the basic of scripting? [closed]

Asked by 10 years ago

Please like the basic The first and easiest

Closed as Too Broad by AxeOfMen and evaera

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 10 years ago

Here is a lava brick script

function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.Health = 0 end end script.Parent.Touched:connect(onTouched)

Ad