Would cloning scripts into a player be fine?

Hello everyone!

This may come off as a silly question but as the title suggests, would cloning scripts into a player be fine?

For some additional information, I am making a game where you can earn/purchase abilities.
Each ability would be added onto your character, and hence that’s why I am wondering.

If there’s a completely different way to go about this method, please let me know as help of any sort would be absolutely wonderful.

Thank you very much!

4 Likes

You mean cloning the script from a completely different parent and then parenting it to the player? You can just use boolvalues and enable it if the player gets an ability, so you can only use the ability when the boolvalue is enabled

3 Likes

Its totally fine to do that.
Its more of a question of are there better ways to achieve what you are wanting to do.
But yeah, I used to do that for vehicle controls, character movement, and custom animation controllers.

4 Likes

I see no problem with StarterPlayerScripts and adding conditions to make it happen once something else happens.

3 Likes

Thanks to everyone for their input, I’ll keep them in mind and try them all out.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.