The script works it's just like only your camera goes to the coordinate and your body/character stays were it was before. Weird glitch. Can someone help me?

LocalScript:

local player = game.Players.LocalPlayer
local character = player.Character
local rootpart = character:WaitForChild("HumanoidRootPart")
local mouse = player:GetMouse()

script.Parent.Activated:Connect(function()
	rootpart.Position = mouse.Hit.Position
end)

Photo: https://gyazo.com/b1e712d1a368a9d79920c1b7f489d1c0