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

Taking a player's control?

Asked by
Mr1Vgy 30
8 years ago

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

Log in to vote
0
Answered by 8 years ago

I have the link to the wiki here: http://wiki.roblox.com/index.php?title=Controlling_a_Player%27s_Character The answer should be in here.

Ad
Log in to vote
0
Answered by 8 years ago

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..

Answer this question