Hello, I have made a script so when a model of parts hit a wall that model that hits the wall is destroyed and then the model in the server storage is cloned. Although this works the only problem is that the 2nd time the model comes into contact with the wall it seems to not be destroyed and creates multiple duplicates. Here is the video and script for reference,
https://gyazo.com/07a419eb8e860a7e3a9eaafed1f93e1a
local part = script.Parent
local wavemodel = game.Workspace.Wavemodel
part.Touched:Connect(function(hit)
wavemodel:Destroy()
game.ServerStorage.Wavemodel:Clone().Parent = workspace
end)

15 comments
Same, I didn't know what movement script he was using, but i'm guessing that he used "BodyVelocity" as the part was moving and was still floating.
Yeah I used body velocity and body force.
Did it work? :) If you have any more questions, just ask
Doesn't seem to work after setting the correct variables and fixing a few things, it seems to just hit the wall now isn't being destroyed. (This is before the model is cloned)
Do you mind adding me on discord so communication can be quicker and efficient? Chickensalt#0386
yes, we can do that.
Currently im in school, i could talk to you in like 6-7 houres?
Sure sounds like a plan I have plenty of time to get thidone so I’ll see you then, send a fr on disc and I’ll accept.
Well, i tested mine it work for ever lmao...?
Mine should normaly work too, He probably has a mistake somewhere else. Well, he could atleast try your Code idk
Both don’t seem to work at all now, the model is just hitting the wall and nothing is happening, gonna have a look at it when I get home
I’ve found the problem, can you contact me on discord to help me solve it?
what is the problem?
I tested mine it works forever until i stopped it. Probably you had made a mistake somewhere when changing it?
Since there was multiple parts in a model it was only looking at the name of the part not the model. I've fixed it so it destroys the parent of the part that is hit so it basically destroys the model now. Thanks for the help!