This is kind of hard to explain but like, a player tp's behind someone and it deals damage to the person behind them. This is my current tp script and it works fine.
local player = game.Players.LocalPlayer local mouse = player:GetMouse() function teleport(key) if key == "f" then player.Character.UpperTorso.CFrame = mouse.Hit end end mouse.KeyDown:connect(teleport)
You would have to use Dot Product to find out how "behind" that player is (mathematically comparing both's lookvector).
An AMAZING source I learned from how to use Dot from is this: here