Hello, Thanks for your coming. What I am trying to do is a test for remote event, here is my script:
Script:
game.Players.PlayerAdded:Connect(function(player)
Instance.new(“RemoteEvent”,game.ReplicatedStorage).Name = “message”
Instance.new(“RemoteEvent”,game.ReplicatedStorage).Name = “answer”
game.ReplicatedStorage.message:FireClient(player,“test”) --Mark 1
game.RpelicatedStorage.answer.OnServerEvent:Connect(function(data)
print(data)
end)
end)
Local Script:
game.ReplicatedStorage.message.OnClientEvent:Connect(function(data)
game.ReplicatedStorage.answer:FireServer(data)
end)
from my exception and inference, the output should be what I put after player at mark 1, but actually it does nothing at all, so what is the error? If you know then please answer me. Thanks!

3 comments
Thanks! Now I finally understand it! Your answer is helpful!
Hi, I tried add a new remote event called added and used the same method as what you said in the last post, but it still does not work.
May i ask i see you are creating 2 remote events on line 2 and 3, you create them and then instantly fire them, are you sure your client has referenced the remote events right? Did you do from the local script: ReplicatedStorage:WaitForChild('message')? Or why don't you just make tthe event in studio? Also make sure to fix what CjayPlyz say, his answer is correct there.