I literally spent last 2 hours trying to understand why my code does not work.
game.ReplicatedStorage.Job1.Privacidad.OnServerEvent:Connect(function(Player)
local plc = game.ServerStorage.PlayerData[Player.Name].Place
if plc.Value == "Job1" then
print("test")
end
end)
I checked so many times the value of "game.ServerStorage.PlayerData.MyPlayerName.Place" and definitely is "Job1".
It's 6 am in my country, my brain is burned.

8 comments
Job1 y no job1?
Y en donde esta el script? Solo ejecutan en ciertos lugares.
Creo que el problema esta en que es un ObjectValue, porque acabo de probar cambiando a StringValue y ha funcionado, así que ni idea de que poner en if plc.Value == "Job1" que es donde yo creo que reside el problema
Si es un ObjectValue tienes que hacer if plc.Value.Name porque Value es una referencia a un objeto si es ObjectValue.
Vale, soy estúpido, ya lo he solucionado poniendo "game.Workspace.Job1". En fin, creo que no debería quedarme aprendiendo Lua hasta tan tarde. Gracias igualmente.
Listo, ya lo he modificado, y muchísimas gracias por toda tu ayuda, he podido aprender por fin a usar los Remote Events gracias a ti xD. Un saludo!
Gracias :)
I think you should make "Job1" a table