Basically I have an issue where if 1 person does something in game that fires an event to the server, causing the server to change a value in replicated storage, the value is set for all players when I only want it to be set for the player that fired the event. Is it possible to change the value for that player only, if I have access to the player in the server?
You can insert a value into each player, and then when the RemoteEvent fires, the server can modify the value that’s in the player.
I know thats an option, but is it possible to do so if the value stays in replicated storage?
You can create a folder for each player and put it in ReplicatedStorage and name the folder with the player’s username or UserId. and then in each folder add a value.
Well based on your responses I assume its not possible to do so if I keep just 1 value in replicated storage, thanks for the replies though. I tried putting the value inside the player in a local script but on the server the value wasn’t there, so I couldn’t modify it. Do you know how and where exactly I should put the value inside the player?
You have to do that with a server script like this:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local Value = Instance.new("IntValue")
Value.Parent = player
end)