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

says line 17 is indexing a nil value? [closed]

Asked by 6 years ago
01local viewPort = script.Parent:WaitForChild("ViewportFrame")
02local playerAro = script.Parent.ViewportFrame.Player
03 
04 
05local WildLife = workspace:WaitForChild("WildLife")
06--WildLife:Clone().Parent = viewPort
07local cild = game.Workspace:GetChildren()
08local player = game.Players.LocalPlayer
09player.CharacterAdded:Wait()
10 
11for index = 1, #cild do
12    if cild[index].Name ~= "Camera" then
13        if cild[index].Name ~= "Terrain" then
14            if cild[index].Name ~= nil then
15                if cild[index].Parent ~= nil then
View all 35 lines...

Closed as Too Broad by User#24403 and TheeDeathCaster

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?