I’m questioning what an optimal way of doing inputs in plugins is.
Legacy Surface Tool uses Mouse.KeyUp, however thats deprecated and probably not supported.
PluginMouse.KeyUp:Connect(function(k)
if string.byte(k) == 27 then --(Escape)
plugin:Deactivate()
end
end)
I’ve tried ContextActionService and UserInputService however they dont work within the server datamodel. There was a feature request tieing this all up.