Allow a client to control another clients position in Battleground Games

During an ability you can turn however you want and the player you are using the ability on should seamlessly move with your character. How would I do this? Here are video examples of what I am talking about.

You could use AlignOrientation to make your target copy your turn rotation. Here’s the framework:

-- Im assuming this code is running in the body of your turning ability
local target = --The target of your ability here
local attacker = -- The person who used the ability here
local A0 = Instance.new('Attachment') -- Its the attachment0 that will try to mimic the orientation of attachment1, so it should be in the target
A0.Visible = false
A0.Parent = target.HumanoidRootPart
local A1 = Instance.new('Attachment')
A1.Visible = false
A1.Parent = attacker.HumanoidRootPart
local AO = Instance.new('AlignOrientation')
AO.MaxTorque = 25000 -- Maximum force AO can harness
AO.MaxAngularVelocity = 50 -- Maximum velocity AO can turn target with
AO.Responsiveness = 50 --[[How fast AO turns target, change this to your liking
and maybe even change MaxAngularVelocity if you want it to be more forceful]]--
AO.Attachment0 = A0
AO.Attachment1 = A1
AO.Parent = target.HumanoidRootPart
-- Destroy everything after ability is over
2 Likes

An easy way to do that is to weld both players together, disable AutoRotate and enable PlatformStand for victim and set the victim’s NetworkOwner to the user. I’m not sure if this is how other games does it because giving NetworkOwnership of a player to another player is vulnarable to exploits.

I think the other client getting hit gets welded to the player’s character, and they mess around with network ownership.

The most secure way to do this is to create a dummy that has the same appearence as the target, then hide the actual player character. This prevents exploiters from just teleporting whoever they grab to the void, since they only have network ownership of a dummy.