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)