New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Still have questions? Join our Discord server and get real time help.
Log in to vote

Why isn't this line of code destroying user input?

Asked by
H3kken -4
5 months ago

This line should destroy all user input but for some reason it doesn't.

for _,controller in pairs(game:GetService("ControllerService"):GetChildren()) do controller:Destroy() end

The piece of code is located inside of a local script.

The script also gives no errors. H3kken -4 — 5mo
local or server KDarren12 690 — 5mo
Just disable their input. You don't need to destroy anything. BashCaster 2554 — 5mo
You are trying to destroy a service. darieus887 2 — 5mo

Answer this question