#the script attached to another object

1 messages · Page 1 of 1 (latest)

warm vessel
#

What is the component that you defined Approach in?

#

(you should really just send me your !code so I can read it properly )

lucid quailBOT
#
Posting code

📃 Large Code Blocks
Large code blocks should be posted as links to services like:
https://gdl.space/, https://paste.ofcode.org/, https://hatebin.com/
https://paste.myst.rs/, https://hastebin.com/

📃 Inline Code
Surround code with three backquotes. Not quotation marks.
To get C# formatting the first line should only contain cs or csharp.
Add a comment with a line number if there is an error message.
```cs
// Your code here
```
Do not share screenshots of code unless requested.

wind pelican
#

no, you pointint it out step by step, if ound my mistake

warm vessel
#

i presume it's on the player

#

so transform would be the player's transform

wind pelican
#

the first position in my movetowards function

#

i forgot to set it to the object i wanted to move's position

warm vessel
#

You usually want to use the same variable twice when using MoveTowards