C
C#15mo ago
tromboner123

❔ whats wrong with this??

me nob i just started
No description
7 Replies
TheRanger
TheRanger15mo ago
try reading the error message
tromboner123
tromboner123OP15mo ago
i dont understand it
TheRanger
TheRanger15mo ago
can u display it here?
tromboner123
tromboner123OP15mo ago
No description
TheRanger
TheRanger15mo 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
tromboner123OP15mo ago
ohh it worked btw thx
Accord
Accord15mo 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.
Want results from more Discord servers?
Add your server