Add nil fallback for UserInputService assignment

This commit is contained in:
sindri 2026-03-02 14:17:22 +01:00 committed by GitHub
parent 28f909cf90
commit 870d07a469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,4 @@
-- vide/draggable.luau
local UserInputService = game:GetService("UserInputService")
local UserInputService = game:GetService("UserInputService") or nil
return function(action, cleanup)
return function(opts)