How to make a value that is changed from a text button change for only the local player who clicks the button

Local script:

Local Event = game:GetService(“ReplicatedStorage”)
RemoteEvent

Script.Parent.MouseButton1Click:Connect(function()
Event.OnClientEvent:Connect(function()
Event:FireServer()
end)
end)

Server script:

Local Event = game:GetService(“ReplicatedStorage”)
RemoteEvent

Event.OnServerEvent:Connect(function()
Local Value = script.Parent
Value += 1
end)

So we’ll when the button is clicked, the value will change. The intvalue is in a tool, in the starter pack. So it’s basically given to every player. So when the button is clicked, every tool with that value will go up by one. How do I make it so that when the button is clicked by the local player, the value will only increase for the tool that the local player has.

Currently your event on the server is changing the same value everytime, which is not the value for a specific player. If you’re trying to change the value for a specific player, you’ll want to consider the fact that the Player argument is passed along to the server when you fire to the server.

Event.OnServerEvent:Connect(function(Player)
  Local Value = Player.StarterPack.IntValue.Value
  Value += 1
end)

This is a rough idea of what you should do if I am understanding what you’re asking for. You’ll want to find the value for the specific player that’s firing the event and change it for their value only.

If you want to change the value for the player only (I am going to assume you’re not making a ‘clicking game’) then you can just do everything on the LocalScript.