Problem with retrieving value by remote event

  1. What do you want to achieve? Keep it simple and clear!
    Everything described in topic, i’m just getting nil in return, though server one from where i return is not nil

  2. What is the issue? Include screenshots / videos if possible!
    Described in 1.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? Tryed more long system with fire server and then client back. Still nil

Client

...
local data = RetrieveDataEvent:FireServer(Player)
	print(data)
		if data == "Beginning..." then
			NoData()
		end
...

Server

...
RetrieveDataEvent.OnServerEvent:Connect(function(player)
	return player, PlayerManager.GetValue(player, "StoryPart", "Part")
end)
...

Note: THIS LINE IS NOT NIL

PlayerManager.GetValue(player, "StoryPart", "Part")

unfortunately, you cant use remote event’s for returning a value

Wait, maybe i’m dumb or smth. But i used method like that trillion times, wdym i can’t

me either, but based on recent post on devforum that remote event’s cannot used for returning values i think

maybe you must use remote function instead

Oh, well i tryed and…

1 Like

Nevermind my bad. Fixed it. (30 letterssssssssssssss)

lol, ok then good luck on your project

1 Like

Thank you. (30 lettersssssssssssssssss)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.