【发布时间】:2019-10-12 12:09:34
【问题描述】:
我试图在玩家生成时创建一个灯光,但我遇到了多个问题
我尝试了许多格式和功能总是不断得到任何一种
“尝试索引零值”
"[head(and other things)] 不是 [humanoid(and other things)] 的成员"
game.Players.PlayerAdded:Connect(function(playersdude)
playersdude.CharacterAdded:Connect(function(char)
local humanoid = char:WaitForChild("Humanoid")
local light = Instance.new("PointLight")
light.Parent = game.Players.LocalPlayer.HumanoidRootPart
end)
end)
【问题讨论】:
标签: roblox