Script
local theeventis = script.Parent.Main
local thevalueis = script.Parent.TheValueOfIt.Value
local function servergotfired(player, pname)
game.Players[pname].leaderstats.Cash.Value = thevalueis
end
theeventis.OnServerEvent:Connect(servergotfired)
LocalScript
script.Parent.pressme.MouseButton1Down:Connect(function()
local pname = script.Parent.pname
local pvalue = script.Parent.pvalue
local theeventis1 = script.Parent.Parent.Main
local Player = game.Players
script.Parent.Parent.TheValueOfIt.Value = pvalue.Text
theeventis1:FireServer(pname.Text)
end)
So basically my problem here is to get the value that I want to put in the following name using script not local script, The real problem is the script can't get the value of TheValueOfIt. Someone Help Me Please!

2 comments
it doesn't work because if i add the TheValueOFIt and the pname its double so i don't know how to do it.. please help?
You can pass multiple arguments when firing a RemoteEvent.