RandomVal.Value = script.Parent.Parent
I tried this. I wanted to make something like this,
RandomVal.Value.Part:Destroy()
But, it ends with a error. Please help!
It seems as if you are trying to change the value to script.Parent.Parent. You can try something like this to check if it's a certain value, then destroy the part.
if RandomVal.Value == script.Parent.Parent then RandomVal.Part:Destroy() end