Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[SOLVED]How can I make a local script communicate with another local script?

Asked by
lilzy7 68
3 years ago
Edited 3 years ago

can anyone help me, im trying to make a local script fire a remote event in replicated storage and activate another local script (it has a OnClientEvent, a listener), i used :FireClient(Player), but all it says is just "FireClient can only be called from the server". How am I supposed to make 2 clients communicate with eachother?

0
Why do you want 2 clients to communicate with each other?? Agentgilspy 0 — 3y
1
By using a event called Bindable Function XviperIink 428 — 3y
0
im trying to make it so when someone presses f, a local event runs to check the mouses position then after that it fires a server event lilzy7 68 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago

Well you could use a Bool Value and then change the value. In the other script use GetPropertyChangedSignal on the value.

Ad
Log in to vote
0
Answered by
lilzy7 68
3 years ago

i found the answer by bindable functions (Xviperlink)

Answer this question