Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How make Hoverseat move up and down for xbox controller?

Asked by
Furling -5
6 years ago

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?

Answer this question