概要
robloxでassistantやってみた。
練習問題、やってみた。
練習問題
UserInputServiceを使え。
サンプルコード
local UserInputService = game:GetService("UserInputService")
local function onInputBegan(input, _gameProcessed)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
print("The left mouse button has been pressed!")
end
end
UserInputService.InputBegan:Connect(onInputBegan)
以上。