What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to use all of the FindFirstAncestor method but it didn’t work.
local Model = script.Parent.Parent.Parent
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
I try it but when i use a new method like FindFirstAncestor and i run the script for a first time the error didn’t occur but at the second time the error will occur and it’s actually return nil
Since there’s a chance the dropper is destroyed you’ll need to use an if statement before running the rest of the script:
local dropper = script.Parent
if dropper then
local tycoon = dropper:FindFirstAncestor("Tycoon")
if tycoon then
-- Safe to run the rest of your script inside here, example:
print(true)
else
warn("Tycoon is nil")
end
else
warn("Dropper is nil")
end