Rolling Ball!

Im on official unity training course.Small project. I stuck from a basic thing. ım not a coder ı just follow the script and no errors from it. ıt needs to rotate my object its in origin point but nothing happens and object (PickUp) not accepts the script. ıt says ‘‘the associated script cannot be load’’ (BTW ı could not find a place where ı should be post my question so ım sorry ıf ı cause any problem)

Last 2 script works fine but 3rd one is not accept the object…?

Could you try removing the component, then adding it back? It shouldn’t say “Nothing Selected” (I don’t know how that happened)

Your issue is that your script is called “Rotate” but your class is called “Rotator”, Unity requires both the script filename and the class name to be the same.

2 Likes

Rob is best ya :smiley: rly you are overpowered haha

1 Like

Hehe, you’re more than welcome :slight_smile: