Script collecting cash error and deleting part

'This is the droppers code,
–//Variables
local DropperPartsFolder = script.Parent.Parent.Parent.DropperParts

–//Loops
while task.wait(2) do
local NewPart = Instance.new(“Part”, DropperPartsFolder)
NewPart.Position = script.Parent.SpawnPart.Position
NewPart.Size = Vector3.one
NewPart.BrickColor = BrickColor.new(“Dusty Rose”)
NewPart.Material = (“Marble”)

local newEmitter = Instance.new("ParticleEmitter")
newEmitter.Color = ColorSequence.new(BrickColor.new("Dusty Rose").Color)
newEmitter.Size = NumberSequence.new(1) --//Put whatever number you want
newEmitter.Parent = NewPart
newEmitter.TimeScale = (0.2)

local CashValue = Instance.new("NumberValue")
CashValue.Value = 1
CashValue.Name = "CashValue"
CashValue.Parent = NewPart

NewPart.Parent = DropperPartsFolder

end

– newPart.Material = (“Marble”)

This is the script where the error is shown:
local CashValue = script.Parent.Parent.Parent.Parent.Values.CashValue

script.Parent.Touched:Connect(function(Hit)
if Hit.Name == “Part” and Hit:FindFirstChild(“CashValue”) then
CashValue.Value += Hit:FindFirstChild(“CashValue”).Value
Hit:Destroy()
end
end)

ERROR: CashValue is not a valid member of Folder "Workspace.TycoonModel.Values

Your error simply means that your CashValue isn’t inside of workspace.TycoonModel.Values. You need to ensure it is in there and thats all you can really do ig.

I fixed it. A new error arived:



robloxapp-20230412-1827261.wmv (1.8 MB)
It won’t increase the players cash.

what in gods good world is fflagSelfifeViewFeature bruh.

I have never seen that in my life, I cannot help you.

Thats not the error lol, the same error is happening to me.

What is the error here, I dont see it in printlog?
I am on mac and cannot view your wmv file.

that error is from a core script and I don’t think you can fix it because you can’t open edit core scripts. and it’s from a client script and the pictures are server scripts