You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve?
I want to have a local script fire a variable to a specific, known server script.
- What is the issue?
I can’t use :FireServer() without it sending to all server scripts
Hopefully demonstrated in the diagram.
I need this to work this way as I don’t want other people getting the :fireserver(), as they should have it come from their own local scripts.
This may not work, and I would need to have another solution/workaround.
- What solutions have you tried so far?
I didn’t find anything on the developer forum resembling this issue, so I hope this is novel.
Client side:
repeat wait() until game.Players.LocalPlayer.Character
repeat wait() until game.Players.LocalPlayer.Character:IsDescendantOf(game.Workspace)
game.ReplicatedStorage.Playerfinder:FireServer()
Server side:
game.ReplicatedStorage.Playerfinder.OnServerEvent:Wait()
print("b")
Hopefully all works out, first post FTW!