like if I say :bring YourName
you will get teleported to me with a distance between the player and me
Just teleport the chatted player
Exactly, just teleport the player who ran the command with a local script
Plr.Chatted:Connect(function(Msg)
if string.find(Msg:lower(),":bring") then
local TargetPlr = nil
for String in Msg:gmatch("%w+") do
if String ~= ":bring" and game.Players:FindFirstChild(String) then
TargetPlr = game.Players:FindFirstChild(String)
break
end
end
if TargetPlr then
TargetPlr.Character:PivotTo(Plr.Character.PrimaryPart.CFrame + Plr.Character.PrimaryPart.CFrame.lookVector * 2)
end
end
end)