它输出一个错误,指出Attempt to index nil with 'WaitForChild',这是一个服务器脚本,错误在plr:WaitForChild("Crime",1)。这就是它: local crime= false local list = game.Workspace:children() l
我正在尝试一本名为Roblox : Scripting For Beginners Leaderboard Script-Through的书中的一个示例。我收到一个错误。错误是“Workspace.Part.Script:4:尝试用‘WaitForChild’索引nil”。对于FindFirstChild,我也得到了同样的错误。script.Parent.Touched:Connect(function()
player = game:GetService("Playe
script.Parent.MouseButton1Click:connect(function() local item = RS:WaitForChildPencil") local player = game.Players.LocalPlayer
local stats = player:WaitForChildcloned.Parent = play
我正在尝试创建一个每5秒改变一次的TextLabel。我有这段代码,但不起作用。local PlayerUI = player:WaitForChild(“PlayerGui”) txtLabel.Text = “Warning: This game contains scenes that may be too scary for some roblox playersServerScriptService.Scr
A12.WaitForChild:4:尝试用“WaitForChild”索引零
function onTouched(hit) local playerMod = require(game:GetService("Players").LocalPlayer:WaitForChild("PlayerModule"))
l
我正在尝试制作一款游戏,允许玩家坐在特定的座位上,通过聊天他们的UserId或用户名来检查任何其他玩家的头像,但当用户输入用户名时,该函数总是返回Instance,这很烦人。game:GetService("ReplicatedStorage")local h=Player.Character:WaitForChildConnect(function(m) if #string.split(m,"