Help with enemy dropping tools

Correct but is your trigger using it?

It for sure won’t print the same error, telling you that Prompt isn’t a part of Classic Sword, if you used WaitForChild.

How would you add a waitforchild in that line of code though?

local Prompt = anchor:WaitForChild("Prompt")
Prompt.Triggered:Connect(function(player)
	touched = giveItem(reward.Name, recipient)
	
	model:Destroy() -- Remove model after collected
	sendInventoryUpdate(player)
end)

Yes i added that part but i still got the prompt not a valid member error. It has to be somewhere else in the code at this point.

You already know what to do then. :slight_smile:

hm? I already know what to do?

Yea, for every error you fix, if a new one pops up, just fix that and proceed until there’s no errors. :slight_smile:

Edit: If you need help with any of them. Post the new error in a new reply in this thread, and also post the part of the script that errors.

The only error is the prompt isnt a part of classic sword

Please send me the output, and the lines again.