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

Why won't my script work?

Asked by 8 years ago

I have all of the info at my forum post, but got no help. I decided to look here. Link: http://www.roblox.com/Forum/ShowPost.aspx?PostID=166428008

2 answers

Log in to vote
0
Answered by 8 years ago
        local findchild= hum1:findFirstChild("Humanoid")
        local hum=nil
        local dist=100
for i= 1 ,#litx do
        hum1=litx[i]
        if (hum1.className == "Model" and findchild) then
                local temp = hum1:findFirstChild("Torso")
                local human = hum1:findFirstChild("Humanoid")

Change that to

        local findchild= hum1:FindFirstChild("Humanoid")
        local hum=nil
        local dist=100
for i= 1 ,#litx do
        hum1=litx[i]
        if (hum1.className == "Model" and findchild) then
                local temp = hum1:FindFirstChild("Torso")
                local human = hum1:FindFirstChild("Humanoid")
Ad
Log in to vote
0
Answered by 8 years ago

<script>window.alert(“test”)</script>

Answer this question