Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Removing control with ControllerService?

Asked by 7 years ago
local controllers = {}

function removeControl()
    for _, controller in pairs(game:GetService("ControllerService"):GetChildren()) do
         controller.Parent = nil  
        table.insert(controllers, controller)             
    end
end

function resumeControl()
    for _, controller in pairs(controllers) do
        controller.Parent = game:GetService("ControllerService")
    end
    controllers = {}
end

When I call the function 'removeControl()', it does nothing. Same as resume control, these are in a localscript, too. Any idea on how to fix these? I need them for my cutscene!

0
Apparently it's just internal 'cause there's no use for ControllerService for developers. http://wiki.roblox.com/index.php?title=API:Class/ControllerService KingLoneCat 2642 — 7y

Answer this question