I would like my teleport script to work.
So I need t put Player.CFrame or Player.Character.CFrame ?
Here’s a screenshot

Thank you for helping in advance.
local player = game:GetService('Players').LocalPlayer
local Admins = {"JAJA_MAM", "Sans_SwapSwapYT"}
player.Chatted:Connect(function(msg)
local command = "/teleport "
local CheckIfCoammand = string.sub(msg, 1, 11)
for _, currentAdmins in pairs(Admins) do
if player.Name == currentAdmins then
if string.match(command, CheckIfCoammand) then
local Victim = string.sub(msg, 12, #msg)
player.CFrame = game.Workspace:WaitForChild(Victim).CFrame
end
end
end
end)
If its player.CFrame then I don’t have anyone which I can test my script.