I have workspace then a model called "CE" and I have a a part into it. In the part I have a script.
script.parent:remove()
I want to remove the model. Whats wrong?
First Error, you forgot to capitalize "Parent" and remove() only works with scripts I believe. Try this:
script.Parent:Destroy() -- Destroy is a function used to remove something like a part.
The model is the parent of the part. The part is the parent of the script. Therefore, the model is script's parent's parent, not script's parent.
script.Parent.Parent:remove() -- The model, not the part.