Is it possible to make a command so you can say !createparts 50 then it will make 50 parts in the workspace? I'm unsure where to start, any code examples would be helpful!
I already have the main chatted event set up, I'm just unsure about the creating the amount of parts the player says
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg[1] == "!createparts" then
local partsToMake = tonumber(msg[2])
print(partsToMake)
end
end)
end)

11 comments
Instance.new()
I already know that aswell, I'm talking about the actual number of parts to make
make a function and an argument for number of parts
I need an example of how you would make the specified parts the player said
specify your question we're not sure what you want, also try to create your own code and post it here because this is not a request site
i did, you didnt read what i put correctly
right, i got confused with your comment so i thought you wanted something else, that was my bad, sorry
i'm gonna try to do something that might help you
okay, i appreciate your help
I'm going to post my code of what I have
Okay updated, just saying the code doesnt seem to print anything