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

Can someone help with this error? [closed]

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
script.PArent.Touched:connect(function(t)
if t.Parent:FindFirstChild("Humanoid") then
t:Destroy()
end
end)

Please help!

Locked by fireboltofdeath, TofuBytes, adark, and BlueTaslem

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
3
Answered by 10 years ago
script.Parent.Touched:connect(function(t)
if t.Parent:FindFirstChild("Humanoid") then
t:Destroy()
end
end)

You put PArent instead of Parent.

0
Thank you!! thefinalbattleman 35 — 10y
0
You're welcome. fireboltofdeath 635 — 10y
Ad