local btn = script.Parent.btn
local location = script.Parent.location
btn.ClickDetector.MouseClick:Connect(function(plr)
local humanIsTrue = plr:FindFirstChild("HumanoidRootPart")
if humanIsTrue then
humanIsTrue.CFrame = location.CFrame + Vector3.new(0, 2, 0)
end
end)
In Workspace, a model named "tp" (teleport) has these Children:
A script with the above code inside A part named "btn" with a ClickDetector A part named "location"
Please let me know a fix ASAP

6 comments
Out of curiosity, before this code I replaced the code in lines 5 through 8 with print(plr, ", ", plr.Parent), and I got my username and Players
It seems like you are using
Vector3on CFrame, tryCFrame.new("0, 2, 0")on the line 7.I hope you are kidding, @Igoralexeymarengobr.
wdym im not good like u with coding tho but im pretty sure that was the problem ;p
@Igoralexeymarengobr no, CFrame and Vector3 are compatible
oh thats nice i did not know that lol