Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

help im stucked in Remotevent:FireServer Someone help please?

Asked by 4 years ago
Edited 4 years ago

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.

0
i am having a hard time understanding this SamTheEnthusiast 70 — 4y
0
i mean is i want to get the value and the player name that i typed in TextBox ImAnonymousBan 24 — 4y

Answer this question