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

I swear I'm not crazy but it IS possible to destroy a cloned Model, right?

I have a script that clones a Model from the ServerStorage into a Folder inside the Workspace. The player then does some input magic and the same script destroys the cloned model. Everything in the function runs EXCEPT for the actual destruction of the part. The console shows an error that says Destory is not a valid member of Model.

I'm either going through some episode where I've forgotten how Roblox works or something weird is going on that I don't know. I've had the script print the parent of the designated model and everything checks out. Am I slowly going insane?

Here is the actual code that is in the Workspace as a Script.

game.ReplicatedStorage.RemoteEvent.OnServerEvent:connect(function(plr, Part)
	[...] --Irrelevant Code
	print(Part.Parent.Name) --Returns to the name of the Model that I want destroyed.
	Part.Parent:Destory()
end)

Much appreciation!

1 answer

✓ Accepted answer

Typo? Destory > Destroy?

1 comment

2

Wow I need Coffee... Thanks mate, I thought I was going insane.

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