Simple tool script isn't working

i am trying to create a script that makes a tool teleport the player a few studs forward.
the character isn’t even moving at all when i try to change the cframe of the humanoidrootpart.
this is a regular script and the script is activating; it just is not working.
the script’s parent is the tool and there is also no errors in the console.

local tool = script.Parent
tool.Activated:Connect(function()
	local character = tool.Parent
	character.HumanoidRootPart.CFrame += Vector3.new(character.HumanoidRootPart.CFrame.LookVector * 12)
	tool:Destroy()
end)

Have you tried this?

character.HumanoidRootPart.CFrame += character.HumanoidRootPart.CFrame.LookVector * 12

The issue here probably because you put Vector3 in another Vector3 which is odd

oh right, that worked. thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.