I need help with sending data to server from guis

So I have been struggling trying to find a way to send some numbers for a script I need from a local player to the server. The thing is, I only want this to be one player on one specific team, so I don’t want everyone to be able to use it, any way I try and send the numbers it wont go threw I’m not getting any errors either.
Here is my code:
Local GUI:

local event = game.ReplicatedStorage:WaitForChild("WageChange")
local wage = script.Parent.Value

event:FireServer(wage)

Server:

local remoteevent = game.ReplicatedStorage.WageChange

remoteevent.OnServerEvent:Connect(function(player, wage)
script.Parent.Value.Value = wage
end)

try changing remoteevent.OnServerEvent:Connect(function(wage)

to remoteevent.OnServerEvent:Connect(function(player, wage)

Just tried that still isn’t working.

why are you accessing .Value’s .Value???

Must have been a typo, fixed it just now still isn’t working.

Local GUI:


local event = game.ReplicatedStorage:WaitForChild("WageChange")
local wage = script.Parent.Value
event:FireServer(wage)

Server:


local remoteevent = game.ReplicatedStorage:WaitForChild("WageChange")

remoteevent.OnServerEvent:Connect(function(player, wage)
print("Inside event")
script.Parent.Value= wage
end)

we need to see if it is even entering the onserverevent

It doesn’t seem to be, I just added this in, isn’t working so it’s not even sending threw.

can you show us more details i.e picture or video of your scripts, object hierarcy, where wagechange is etc.

we know its not going through so something isn’t right, but literally no idea whats wrong cause the code is spot on in terms of theoretical functionality

you could consider adding wait(5) before firing to server to see if that helps

Ok I’ll try that, trying to send the video over it’s not sending though.

debugging1
These are all the scripts and values involved in the process.

try moving CurrentWage to ServerScriptService

move wagechange remote event into repstorage idk why its under a folder???

It’ isn’t under a folder there is a folder above it though.

Just tried this, it didn’t work.

did you change remoteevent.OnServerEvent:Connect(function(player, wage)

back to remoteevent.OnServerEvent:Connect(function(wage)?

I tested this out it should work

Server Script (Put inside ServerScriptService):

local remoteevent = game.ReplicatedStorage.WageChange

remoteevent.OnServerEvent:Connect(function(plr, wage)

script.Parent.Value = wage

end)

local script:

local event = game.ReplicatedStorage:WaitForChild(“WageChange”)

local wage = script.Parent.Value

event:FireServer(wage)

This works! Thanks for the help.