I’m attempting to create an interaction where when one player pushes, it causes the other player to move in the direction the local player is facing.
tool.Handle.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= tool.Parent then
if Debounce == true and playershit[hit.Parent] == nil then
local Player = game.Players:GetPlayerFromCharacter(tool.Parent)
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(16)
hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
local att = Instance.new("Attachment")
att.Parent = hit
local linear = Instance.new("VectorForce")
linear.Parent = hit
linear.Attachment0 = att
linear.Force = Player.Character.HumanoidRootPart.CFrame.lookVector * 110
linear.RelativeTo = Enum.ActuatorRelativeTo.World
playRandomSound(hit, sounds)
randomdecal(hit, bruises)
playershit[hit.Parent] = true
task.wait(1)
hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
playershit[hit.Parent] = nil
end
end
end)