我需要一个脚本,以便当你按下键盘上的E,它将打开与全国人民代表大会的聊天,我已经有一个对话框在头脑中,我想使用。我也已经有了检测你按下E键的代码。
game:GetService("UserInputService").InputEnded:Connect(function(input,event)
if input.KeyCode == Enum.KeyCode.E then
print("Activated")
workspace.NPC.Head.Dialog.InUse = true --This is the code I expect to open up the dialog.
end
end)发布于 2020-03-15 04:02:09
game:GetService("UserInputService").InputEnded:Connect(function(input,event)
if input.KeyCode == Enum.KeyCode.E then
print("Activated")
workspace.NPC.Head.Dialog.SomeGui.Visible= true -- example
end
end)https://stackoverflow.com/questions/60676505
复制相似问题