How I put this:

 inputObject.KeyCode == Enum.KeyCode.ButtonR1 (up)
 inputObject.KeyCode == Enum.KeyCode.ButtonL1 (down)

to

if (script.Parent:findFirstChild("VMode") ~= nil) then
                if (script.Parent.VMode.Value == "Up") then
                    SavedYPosition = SavedYPosition + 1
                elseif (script.Parent.VMode.Value == "Down") then
                    SavedYPosition = SavedYPosition - 1
                end  

for up and down?