LocalScript

script.Parent.pressme.MouseButton1Down:Connect(function()
	local pname = script.Parent.pname
	local pvalue = script.Parent.pvalue
	local theeventis1 = game.ReplicatedStorage.PlayerNameMoneyGui
	
	theeventis1:FireServer(pname.Text, pvalue.Text)
end)

ServerScriptService

local theeventis1 = game.ReplicatedStorage.PlayerNameMoneyGui

local function thenamevalue(player, pname, pvalue)
	warn("really? " ..pname " ok? " ..pvalue)
end

theeventis1.OnServerEvent:Connect(thenamevalue)

i want to fireServer twice because im making a money gui its not working if localcscript only, so i did Remotevent. because serverscript works and if i leave it saves the money. Localscript its not gonna save it, i want to get the player name and the value that i put in Textbox.

2 comments

0

i am having a hard time understanding this

0

i mean is i want to get the value and the player name that i typed in TextBox