I have a script that needs to get data from a model in ServerStorage but it keeps giving me this error: attempt to index a nil value
The script line is this:
for i,v in pairs(game:GetService("ServerStorage"):FindFirstChild("Data"):GetChildren()) do
Then it gets the data from it but sometimes it has nothing in it and it checks it any way returning a nil value and therefore returns an error. Do YOU know how to fix this?
