I have an issue where FireClient is returning "Argument 1 Missing or nil". I have added player to the code and it isn't working. I have come here for help on this problem. The error is at the FireClient. Here is the code:
game.ReplicatedStorage.ReturnChunk.OnServerEvent:Connect(function(plr,chunkx,chunky)
chunk = chunksys.mapdata["chunk"..chunkx.."_"..chunky]
if not chunk then
game.ReplicatedStorage.ReturnChunk:FireClient(plr,chunkx,chunky,game.HttpService:JSONEncode(chunk))

1 comment
The error wasn't occuring on argument 1 oddly. The "if not chunk then" was just me not thinking correctly and it caused the error. It is fixed now. Thanks for the help!