Roblox Studio - Error that i can't figure out how to fix

谁都会走 提交于 2019-12-11 18:28:20

问题


!https://gyazo.com/0cb603d9edce56998a8f4428c78f4c41 <- (Think the problem is in this)

!https://gyazo.com/8dd8e310511801e631c496973938b68d

It comes with an error: 09:52:52.637 - Players.asbjornbonde.Backpack.Shovel.core:5: attempt to index local 'stats' (a nil value)

I have tried to find the issue but i really can't. Hope someone can help me with this. Tell me if u need information.


回答1:


The error is in the "core" script and it's on line 5. The error message is telling us that stats is a nil value and therefore can't be indexed.

The most likely reason for this is that stats on line 4 was set to nil because FindFirstChild didn't find anything. ~ @Paul Kulchenko



来源:https://stackoverflow.com/questions/52686527/roblox-studio-error-that-i-cant-figure-out-how-to-fix

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!