How to change the arguments in a function

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

Be able to replicate this

image

  1. What is the issue? Include screenshots / videos if possible!

I do not know how to do it

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

Find DevForum and Roblox Studio Developer

Someone help me to replicate this please? It would make me very happy

Well I don’t think this is possible in Roblox Lua; Roblox objects are made using a programming language named “C++”. In C++, when you make a class, you can have multiple constructors as long as they take different arguments. If you wanted to do the same thing in roblox, you would have to use a meta table, and the __index metamethod, but this would likely be extremely messy, so I would not recommend it.

I am not an expert in metatables but I want to do it