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!
Typo? Destory > Destroy?