Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Taking a player's control?

I'm trying to take a player's controls away, and this used to work, but it doesn't seem to anymore, what am I doing wrong? Did this method get replaced?

This is in a LocalScript:

for _, con in pairs(game:GetService("ControllerService"):GetChildren()) do
	con.Parent = nil
end

2 answers

Since that ControllerService wont work no more you would do

while script.Parent.Parent ~= nil do
wait()
local Player = script.Parent.Parent
Player.PlayerScripts.ControlScript:remove()
end

Put that in starterplayer hope it helps..

This discussion is preserved as it was. New answers, comments, and votes are closed.