【发布时间】:2021-04-16 14:05:38
【问题描述】:
我想知道我做错了什么。
我只是按照文档使按“E”键在控制台上显示“打印”并说“按”但它没有用,我做错了什么?
-- input
local UserInputService = game:GetService("UserInputService")
--input
-- rolehandle
local function handletouched()
handle.Touched:Connect(function(fas)
wait(3)
role.Value = "-"
if game:GetService("UserInputService").InputBegan == Enum.KeyCode.E then
print("pressed")
end
end)
end
【问题讨论】:
-
有没有调用函数
handletouched()?