📜  enum roblox - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:37.176000             🧑  作者: Mango

代码示例1
local player = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then
        return end
            if input.KeyCode == Enum.KeyCode.F then
            print("Congrats you pressed the Key F")
        end
    end)