Server Script:
script.Parent.ClickDetector.mouseClick:connect(function()
local player = game.Players.LocalPlayer
player.Backpack.addInv.add:FireClient("item")
end)
Client Script:
wait(1)
script:WaitForChild("add")
script.add.OnClientEvent:connect(function(stuff)
print(stuff)
end)
Filtering Enabled is on
Just trying to make a script that communicates with the player when a block is clicked. From what I've seen with RemoteEvents, I'm trying to pass on the argument "item" with the script in the players backpack so it prints the parameter "stuff" as "item". However, it keeps giving me the error "argument 1 missing or nil" on line 3. Help?

2 comments
Uhh, did you mislabel the scripts?
no...i have a feeling that that is a bad thing however...