game['ReplicatedStorage'].Chat.OnServerEvent:Connect(function(plr,msg)
local function player()
for _,p in ipairs(game.Players:GetChildren()) do -- A list of all the players in the server.
return p -- Checks all players for the desired one and returns them.
end
end
if msg.find(msg,';control '..player().Name) then -- this looks for the command and the player's name they want to control
local dummy = player().Character
dummy.Humanoid.DisplayName = tostring(player().DisplayName..' [UNDER CONTROL]')
-- Bind controls here.
wait(20)
dummy.Humanoid.DisplayName = player().DisplayName
end
end)
Edit: As for the actual control-binding, as I said, you’re asking for A LOT
Dude i suggest going inside the module itself and looking at the code ITS THAT SIMPLE and don’t get me started that you broke one rule because you don’t care about TOS