Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

Log in to vote
1
Answered by
Misqueso 145
4 years ago

Typo? Destory > Destroy?

2
Wow I need Coffee... Thanks mate, I thought I was going insane. TaxesArentAwesome 514 — 4y
Ad

Answer this question