So I'm making a game, with recruiting npc allies to help you fight. I found this model id spawner for example: I clicked when using the tool and it spawns an ally. But I can't find a way to remove it when I clicked once. I am also not experienced with scripting so I don't know how to.
I just did this at the end of the spawn model script
local function OnClick:Delete()

3 comments
just that at the end of the spawn model script? Just that? all you did was made a function. In fact by the looks of it you barley even made the function. Let alone calling the function. Is there anything else? at all?
Yeah.. I couldn't think of anything else trying to remove the item when clicked.
Instead, it justs deletes the spawned ally if you put the line in.