I've tried every possible way yet come to no avail, i'd appreciate any help.
Line:
char.HumanoidRootPart.CFrame = CFrame.new(Vector3 -2,6,2)
Full script:
local player = game.Players.LocalPlayer local char = player.Character char.Humanoid.WalkSpeed = 0 char.Humanoid.JumpPower = 0 char.HumanoidRootPart.CFrame = CFrame.new(Vector3 -2,6,2)
Thanks for your time and consideration.

3 comments
The variables got a bit bundled up, but local player and local char should be separated above and under each other, and a gap should separate them from the whole script.
maybe try moving the torso's CFrame
do CFrame.new(Vector3.new(-2,6,2))