Alright, I've done a script that makes me know my cursor coordinates. What if I want to teleport there? I tried to do something like this, but it's not working.
local m = game.Players.LocalPlayer:GetMouse()
local character = game.Players.LocalPlayer.Character
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local MouseCFrame = Mouse.Hit
local MousePosition = MouseCFrame.p
local db = true
local secondtime = false
m.KeyDown:connect(function(k)
k = k:lower()
if k == 'x' then
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(MousePosition))
end
end)
Help please.

5 comments
Yeah, I honestly don't know how to use it. May you explain me how to write it in a LocalScript?
Hey I found a more simpler way of doing this.
Check the update.
Checking if it works.
It works, thanks!