How to combine 2 scripts into 1?

IT allows for 2 scripts to communicate. I kinda have 2 ideas right now. Maybe use a module script. Module script is kinda a script inserter. If you dont want to have 100000+ scripts to edit every single update, you can make it into a module script and the stuff that are in module script can be put into your script. You can also insert different values just like in functions(). Second thing is using remote events and bilndable events.

with this method only one method is that the “script” text will not define the script that is firing modulescript but it will define the modulescript.

I’ll be honest I understand half of my script you can do it yourself further I just don’t understand further I just wanted me to combine these 2 scripts into 1

Just reference the part in your original script and connect the functions.

Sorry, I’d like to link a small script to a big one

But I don’t know how to do it, and most importantly, without mistakes

you can link them remote events or bilndable events
remote events are for client-server and server-client while bilndable ones are for server-server and client client

It’s been a year since I stopped doing this and it came in handy again I still need help please help this is still relevant

1 Like

Guys, can you help me with this please, I really need it

1 Like

Help me do this I need it so that when a player stands on a part he gets endurance And when he gets off the unit, he will stop receiving endurance.

1 Like

I also want the player to not be able to use the tool when standing on the part

1 Like

Guys help me make this still relevant

1 Like

I don’t know how to do this I really need help

1 Like

I still need help, good people, please help me.

1 Like

I still need help, please help.

1 Like

I can’t open the file could you write an example with my script above I want to connect them

1 Like

I am not writing the script for you. Why won’t it let you open the file? What does it say

1 Like

Maybe you can connect them. I understand that you understand. I don’t understand scripts in modular ones very well.

2 Likes

This demonstration explains it perfectly. I don’t understand why it won’t let you open it though

1 Like

Could you combine the 2 scripts into 1?

1 Like