Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

is there any way to connect two scritps (Server to Server) like RemoteEvents?

I wanted to send a variable to another script, is there any way to do it?

1 comment

0

No. Remotes are strictly for client <-> server communication. Look into bindables and modules.

1 answer

✓ Accepted answer

Hello, lytew. Yes. You can use BindableEvents or BindableFunctions. Here's an example:

-- 1st script
game.ReplicatedStorage.BindableEvent:Fire("Hello World!")

-- 2nd script
game.ReplicatedStorage.BindableEvent.Event:Connect(function(text)
	print(text)
end)

The first script will fire the bindable event with an argument of ("Hello World!"). The second script will listen for the bindable event to fire. When it does, it'll print the text, in this case, "Hello World!". For more information go here. Make sure to accept this answer if it helps!

This discussion is preserved as it was. New answers, comments, and votes are closed.