I want to make a sliding part that can work anywhere, but I can't seem to change the Z position without moving the X and Y. I've tried this code
while true do
script.Parent.Position.Z = Vector3.new(5)
print(script.Parent.Position.Z)
wait(0.1)
end
Help?

2 comments
Sadly you can't change the axis's individually; you have you set them any via
Position = Vector3.smh why u accept his and not mine