I cannot quite figure this out. I know the script is wrong, but do not know what I have been doing. Basically, each time a person presses W, the x axis increases. But, I cannot quite figure out what I've been doing wrong. It only works once, and on rare occasion leads to errors. Can someone help figure out what I was doing wrong, or at least give me some tips? Thanks!
tool = script.Parent
char = game.Workspace.char
tool.Equipped:connect(function(mouse)
mouse.KeyDown:connect(function(key)
if key == "w" then
char.Position = Vector3.new(-10, 3.2, -17.6) + Vector3.new(-5,3.2,17.6)
end
end)
end)

1 comment
do char.CFrame = CFrame.new(Vector3.new(-10, 3.2, -17.6) + Vector3.new(-5,3.2,17.6)) that should fix it.