So I’m making a game battleground, and I have a question how do I make the destruction of the part, but not the usual, and that he flew into small pieces when colliding with the ability. Are there any guides and so on how to do this?
1 Like
I am not entirely sure what you are asking. If you want to destroy a part you can use part:Destroy()
.
A simple function that would destroy a part upon collision would be something like this:
local part = "path_to_part"
local part_to_hit = "path_to_hit_part"
part.Touched:Connect(function(hit)
-- You can check the hit part if you want to verify it's a certain object
if hit == part_to_hit then
part:Destroy()
end
end)
If you could give me more details I could maybe help you more with the question or link guides to answer the questions you have.