Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would you do something like this?

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!

1 comment

0

Please help. Is there any alternative? That would work too

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.