I am making a plugin that will allow me to set properties of a part when they are placed automatically(ex. size, transparency, etc). However I don’t know how I can detect when a part is added.
2 Likes
workspace.DescedantAdded:Connect(function(child)
if child:IsA('Part') then
-- do code
end
end)
2 Likes
You can also create a part, set its properties and put it to ReplicatedStorage.
Then, you can easily clone this part without worrying about changing the properties.
1 Like
Then you can simply use game.DescendantAdded. You have PluginSecurity so there shouldnt be any issues with identity errors,
*Also, make sure this only runs in edit mode, otherwise you’re gonna be checking every single object that gets added during testing mode.