【发布时间】:2020-01-04 14:00:35
【问题描述】:
我正在尝试使用值在工作区中查找对象。 打印值时,它将值“WM830”打印为字符串。 但它没有在工作区中找到模型。
这是代码:
script.Parent.MouseButton1Click:connect(function()
local busId = script.Parent.Parent.Parent.Car.value
game.Workspace[busId].Body.Display.maindest.SurfaceGUI.TextLabel.text = "Woop"
end)
这是错误:
Players.E_Link.PlayerGui.A-Chassis Interface.NXUI.TextButton.Script:3: bad argument #2 to '?' (string expected, got Object)
【问题讨论】:
-
原来它使用了错误的值实体。我想念 licked 并且 Roblox 使所有值看起来都一样。
标签: roblox