local PlrDetained = game.Players:FindFirstChild(PlrDetain)
local Players = game:GetService("Players")
ClientRemote:FireClient(Players[PlrDetained]) -- invalid argument #2 (string expected, got nil)
✓ ANSWER ACCEPTED
invalid argument #2 (string expected, got nil) ?
1 answer
✓ Accepted answer
Try doing this.
local PlrDetained = game.Players:FindFirstChild(PlrDetain)
local Players = game:GetService("Players")
ClientRemote:FireClient(PlrDetained)
Tell me if it works or not
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
This is weird because the arguments of :FireClient() is tuple(so it can be any types of value) https://developer.roblox.com/en-us/api-reference/function/RemoteEvent/FireClient
Are you sure is that where the error located?
It should be as it's "argument #2"
When you fire the client, the 1st argument should be the player.
All the answers really helped. Thanks. x