Passing arguments between a local script and server script

Trying to get a value of a parameter to print between a local script and server script through remotevents, why am I getting the error nil and what am I doing incorrect?
Firing server:
image

Event:
image

Error:
image

The player is implicitly passed through :FireServer, so you should not pass it in yourself. So make that ("test", PlayerGui)

1 Like

It has to do with “test”, it probably can’t pass through like that.

maybe do

local test = “test”

then remove “” from “test” in the line you showed. Might not work likewise

I think you’re removing the player parameter from both sides, which is not what you should do. It should be:

-- client
createDialogue:FireServer("test", PlayerGui)
-- server
createDialogue.OnServerEvent:Connect(function(player, text, PlayerGui)
    print(text)
end)
1 Like

This did work!!! appreciate it