I don't get how it doesn't work, I wanted to make a teleport tool where, where ever you click, you go to
Extra info: btw its a localscript and its in a tool
plr = game.Players.LocalPlayer
mouse = plr:GetMouse()
script.Parent.Activated:connect(function()
plr.Character.Torso.CFrame = CFrame.new(mouse.Hit, mouse.Hit, mouse.Hit)
end
I thought this would work but it doesn't, it just teleports me to where i spawn in the world when i click it

2 comments
Also make sure to add 7 to the Y value of mouse.Hit.p so the character doesn't teleport into the ground.
Why 7? It would be 2.5, plus it's their script, not mine.