【问题标题】:PlayerGui.QuestGui.Background.Font.Quest:5: attempt to index nil with 'WaitForChild'. How to fix this problem in roblox?PlayerGui.QuestGui.Background.Font.Quest:5:尝试用“WaitForChild”索引 nil。如何在 roblox 中解决此问题?
【发布时间】:2022-12-24 06:30:30
【问题描述】:

如何在 roblox 中解决此问题

【问题讨论】:

  • 请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。
  • 你的代码好像没有什么问题,发生错误后你修改过代码了吗?

标签: lua local roblox


【解决方案1】:

这只是一种可能性,但您的代码是试图作为客户端运行的服务器脚本。在编程时请记住这一点。 LocalPlayer 只能从本地脚本访问,而您正试图从常规脚本访问它。

【讨论】:

    猜你喜欢
    • 2021-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-30
    • 2020-12-16
    • 2020-11-22
    • 2022-11-07
    • 2021-09-30
    相关资源
    最近更新 更多