Roblox Studio-我无法弄清楚如何修复的错误 [英] Roblox Studio - Error that i can't figure out how to fix
问题描述
!
! https://gyazo.com/8dd8e310511801801e631c496973938b68d
它带有错误:09:52:52.637-Players.asbjornbonde.Backpack.Shovel.core:5:尝试索引本地统计信息"(零值)
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.
推荐答案
该错误在核心"脚本中,位于第5行.该错误消息告诉我们stats
是nil值,因此可以不能被索引.
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.
最可能的原因是第4行的stats
设置为nil
,因为FindFirstChild
找不到任何东西. 〜@Paul Kulchenko
The most likely reason for this is that stats
on line 4 was set to nil
because FindFirstChild
didn't find anything. ~ @Paul Kulchenko
这篇关于Roblox Studio-我无法弄清楚如何修复的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!