I think this somehow relates to how Roblox works this was like this back then, when a newer player respawns Carrying other player actions such as, a throw animation/script, a baby stroller tool.

An older player throwing a newer player: https://gyazo.com/6dd8bff202e141b21448c169e5bbef70

A newer player throwing an older player: https://gyazo.com/ab0b6b6af2e4201b89e5d3ff07fe5957

Soo the 2nd one which was the newer player throwing worked perfectly. What I mean about newer player/older is the timing they respawned, soo if the older player were to reset he would be a newer player therefore he is immune to throws and can perfectly throw.

Here is the code

--[[
	Throws the enemy if the throwEnemy event is fired.
--]]

-- Variables & Services
local players = game:GetService("Players")
local replicatedStorage = game:GetService("ReplicatedStorage")

local character = script.Parent
local player = players:GetPlayerFromCharacter(character)
local throwEnemyEvent = replicatedStorage:WaitForChild("ThrowEnemy")

-- Listen ThrowEnemy event
throwEnemyEvent.OnServerEvent:Connect(function(player, enemyHumanoid, humanoid)
	local humanoidRootPartEnemy = enemyHumanoid.Parent.HumanoidRootPart
	local playerArm = humanoid.Parent["Right Arm"]
	local humanoidRootPart = humanoid.Parent.HumanoidRootPart
	
	local bodyForce = Instance.new("BodyForce")
	local weld = Instance.new("Weld", playerArm)
	weld.Part0 = playerArm
	weld.Part1 = humanoidRootPartEnemy
	weld.C0 = CFrame.new()
	weld.C1 = CFrame.new()
	
	wait(1)
	weld:Destroy()
	enemyHumanoid.PlatformStand = true
    bodyForce.Force = humanoidRootPartEnemy.CFrame.lookVector * -5000
    bodyForce.Parent = humanoidRootPartEnemy
    print("Thrown at", bodyForce.Force)

	wait(0.5)
	bodyForce:Destroy()
	enemyHumanoid.PlatformStand = false
	print("Body force and platformStand disabled, THROW DONE")
end)

1 comment

0

Don't just assume we don't need the codes to fix your problem and don't post it in a pastebin.