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:
Event:
Error:
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:
Event:
Error:
The player is implicitly passed through :FireServer
, so you should not pass it in yourself. So make that ("test", PlayerGui)
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)
This did work!!! appreciate it