What is the easier way to make the position where it is and just move the Y axis?
That question might be confusing, so I will explain it here. One of my friend answered the script for CFrame, which was nice of him, and I wanted to know an easier way to make this script work without putting the exact position of where the part is. This is the script:
02 | UIS = game:GetService( "UserInputService" ) |
03 | Part = workspace.KeyBoard.AlternateKeyLeft |
06 | UIS.InputBegan:connect( function (key, a) |
07 | if key.KeyCode = = Enum.KeyCode.A and not a and not debounce then |
09 | Part.CFrame = CFrame.new(- 73.7 , 21 , 46.9 ) |
11 | Part.CFrame = CFrame.new(- 73.7 , 21.5 , 46.9 ) |
You see here on the position, where I had to copy and paste the exact position of the part in order to make the Y-axis to function. I just want to make the Y-axis function only where when I click A, it goes down 0.5 and then back up. I just want to make a script of possibly like this (X, 21, Z) wait (.1) (X, 21.5, Z). If you still don't understand, please comment it and please don't down vote since I am scared of getting suspended. Thank you.