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

attempt to concatenate nil with string?

Asked by 3 years ago
Edited 3 years ago

Attempt to concatenate nil with string here's the script

                                local handle =
             game.ReplicatedStorage:WaitForChild("ToolModels"):FindFirstChild(availableTools[1] 
            [i].."Handle").Clone() --Where I got the error
         handle.Parent = itemViewport

1 answer

Log in to vote
0
Answered by 3 years ago

There is no variable stating what "i" is. Also, for the love of god please rearrange your code I've never seen anything this messy.

Ad

Answer this question