wait(2)
local player = game.Players.LocalPlayer
local char = player.Character
local mouse = player:GetMouse()
local mouseCFrame = mouse.Hit
local mousePos = mouseCFrame.p
local tool = game.StarterPack.Tp_Move
local UIS = game:GetService("UserInputService")
local dfuser = true
local human = char:WaitForChild("Humanoid")
local HumanRoot = char:FindFirstChild("HumanoidRootPart")
function TP (inputObject, gameProcessedEvent,mouse)
if inputObject.KeyCode == Enum.KeyCode.Q and dfuser == true then
dfuser = false
HumanRoot.CFrame = CFrame.new(mousePos)
end
print("q",mousePos)
wait(0.15)
dfuser = true
end
UIS.InputBegan:Connect(TP,print(mousePos))
I need help it works in the start but it teleports me where the mouse was when we joined the game

3 comments
i dont think u can print mouse position
you set the variables in the beginning, they won't change unless you change them. I'm typing up an answer right now.
also taco, you can print anything.