Not able to drag score script into game manager script

I used Unity AI to make these two scripts but I can’t drag the score manager script into the dropmanager script. Please help

using UnityEngine;public class DropManager : MonoBehaviour{ public Ga - Pastebin.com)
using UnityEngine;using TMPro; // Import TextMesh Pro namespacepublic clas - Pastebin.com

Make sure you didn’t rename your script, and that they are derived off monobehavior.

I double checked all the names are the same

Are you trying to assign a reference to a scene object to a prefab? You can’t reference things in that direction.

The AI gave me this script it’s supposed to be a reference to another script

public ScoreManager scoreManager

Doesn’t answer my question.

And don’t blindly follow what AI’s give you. If you don’t know what you’re doing they are of zero use.

1 Like

That’s not a thing yet, no matter how much the news media wants it to be.

AI is only useful if you know enough to correctly use what the AI gives you, which based on your reply to Spiney’s question, indicates that you do not.

In 2024 the most effective way of learning something complex (like gamedev) is to work at it one small step at a time, like this guy:

Imphenzia: How Did I Learn To Make Games:

1 Like

No I am trying to attach the script to an empty that’s for the world settings Specifically the score UI

I figured out what was wrong that slot wasn’t for a script it was for an empty I had to create