How, and even can I return a value from RemoteEvent?
For example, I want to grab a player's leaderstat value in Script.
`Script`: game.ReplicatedStorage.GetWord:FireClient(plr)
and then:
`LocalScript`: game.ReplicatedStorage.GetWord.OnClientEvent:Connect(function() return "Hello world!" end)
Then, in Script
, print (GetWord) should print "Hello World", because that's what Local is returning. Can it be done like this?
Also: tip for other-language programmers: That should look like (in Java):
public static void getWord(){ return "Hellow world!" }
in another class:
System.out.println(getWord())