Hi, so i have this:
script.Parent.Upgrader.Touched:connect(function(Part)
wait()
if not Part.Name == 'Egg' then return end
wait()
CurCashVal = Part.Cash.Value
MathVal = CurCashVal * Boost.Value
NewCashVal = MathVal + CurCashVal
Part.Cash.Value = NewCashVal
local GetTexture = Texture:Clone()
GetTexture.Parent = Part
GetTexture.Color3 = PackageColor
end)
However, when my players hit it, it keeps printing: Cash is not a valid member of Part "Workspace.HeadlessDeathSpeaker.Pride Flag.Handle"
Meaning that my player would be named Egg, right?
What's going wrong and how to prevent?
