What do you want to achieve?
Fire a client event and have a LocalScript detect that event
What is the issue?
The LocalScript won’t detect the event
What solutions have you tried so far?
I’ve tried looking on the DevForum for help, but nothing appears to be present in regards to what I’m looking for. I’ve tried changing all :FireClient() parameters to just the player and a tuple, but that won’t work.
ServerScript - Inside of ServerScriptService
local CharactersEvent = game:GetService("StarterGui"):WaitForChild("JoinCharacter"):WaitForChild("Frame"):WaitForChild("Characters")
game:GetService("Players").PlayerAdded:Connect(function(Player)
local Characters = {nil, nil, nil}
CharactersEvent:FireClient(Player, Characters)
print("Characters event fired")
end)
Local Script - Inside of StarterGui
local CharactersEvent = script.Parent.Characters
CharactersEvent.OnClientEvent:Connect(function(Characters)
print("Received characters event")
end)
I am getting “Characters event fired” in the Output panel, but I’m not getting “Received characters event”. I don’t know what’s wrong?