key = string.upper(key) if key == "MouseLeftClick" then -- i dont know what the name of the mouse click the key
Hey there, to detect input use UserInputService, and to detect LeftClick through that, heres how u do it :
local userInputService = game:GetService('UserInputService') userInputService.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then end end)