Transform.X returns error

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Im trying to make it so a motor6d transforms on X axis only
  2. What is the issue? Include screenshots / videos if possible!
    The issue is i get the error: “X cannot be assigned to”
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Nothign, i dont know any solutions
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
v.Transform.X = Character:FindFirstChild("RootJoint", true).Transform.X
1 Like

You cannot set X directly, you might be able to set Transform, I forget. What you can definitely do and I have usually done is this:

v = v - (v.Transform.X - Character:FindFirstChild("RootJoint", true).Transform.X) * Vector3.xAxis

Gives this error:

 attempt to perform arithmetic (add) on Instance and Vector3  -  Client - VM:94

just so you know V is a motor6d

v.Transform = v.Transform - (v.Transform.X - Character:FindFirstChild("RootJoint", true).Transform.X) * Vector3.xAxis

It doesnt give off errors but it doesnt seem to transform, probably an issue with naming tho, thanks for the help

It is not a naming issue, its something to do with transform, here i just default transformed (no specific axis) and this is the outcome which isnt correct

This is still not solved, and im gonna go sleep. If anyone has solutions as to why the torso doesnt tranform normally then pleasr tell me, goodnight

try this:

v.Transform = v.Transform - Vector3.new(v.Transform.X - Character:FindFirstChild("RootJoint", true).Transform.X), 0, 0)

Just woke up n its 8 am or sum, ill try it in like 2-3 hours, thanks for helping

Transform doesnt seem to work for some reason:



As u see in vid the character torso moves up and down and all that but the viewmodel not.