C
C#9mo ago
tromboner123

❔ whats wrong with this??

me nob i just started
No description
7 Replies
TheRanger
TheRanger9mo ago
try reading the error message
tromboner123
tromboner1239mo ago
i dont understand it
TheRanger
TheRanger9mo ago
can u display it here?
tromboner123
tromboner1239mo ago
No description
TheRanger
TheRanger9mo ago
well yes, position is a regular property you have to write it like this
transform.position = new Vector3(0, transform.position.y, transform.position.z);
transform.position = new Vector3(0, transform.position.y, transform.position.z);
or
var foo = transform.position;
foo.x = 0;
transform.position = foo;
var foo = transform.position;
foo.x = 0;
transform.position = foo;
tromboner123
tromboner1239mo ago
ohh it worked btw thx
Accord
Accord9mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.