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

Can someone fix this?

Asked by 10 years ago
Torso,Humanoid=script.Parent:FindFirstChild("Torso"),script.Parent:FindFirstChild("Humanoid")

walkhight=2
jumphight=6
gus=3                                   --GUS=grid unit size
increments=100                          --the hight and width in GUS format
runthreats={"TimeBomb","Part","Cannon Shot"}    --threats to run from
grid={}                                 --(table of tables) topographic map
grid2={}
removechildlist={}
checkpoints={}
branches={}
failed=false

function round(h)
    local mult=10^0
    return math.floor(h*mult+0.5)/mult
end

function stop()
    Humanoid:MoveTo(Torso.Position, Torso)     -- LINE IS BROKEN HERE
end

function checkonmap(x,z)
    if x<=increments and x>0 and z<=increments and z>0 then
        return true
    end
end

function printmap()
    for i=1, increments do
        print(table.concat (grid[i], ' '))
    end
end

Line is broken, please fix!

1 answer

Log in to vote
0
Answered by
Hybric 271 Moderation Voter
10 years ago
Torso= script.Parent:FindFirstChild("Torso"); Humanoid = script.Parent:FindFirstChild("Humanoid")

walkhight=2
jumphight=6
gus=3                                   --GUS=grid unit size
increments=100                          --the hight and width in GUS format
runthreats={"TimeBomb","Part","Cannon Shot"}    --threats to run from
grid={}                                 --(table of tables) topographic map

grid2={}

removechildlist={}
checkpoints={}
branches={}

failed=false
function round(h)
    local mult=10^0
    return math.floor(h*mult+0.5)/mult
end
function stop()
    Humanoid.Parent:MoveTo(Torso.Position)     -- LINE IS BROKEN HERE
end

function checkonmap(x,z)
    if x<=increments and x>0 and z<=increments and z>0 then
        return true
    end
end
function printmap()
    for i=1, increments do
        print(table.concat (grid[i], ' '))
    end
end

0
I edited the post. bloonblaster2000 55 — 10y
0
I edited my answer. Hybric 271 — 10y
Ad

Answer this question