local name = "" -- player name local owner = game:GetService("Players")[name] for i,v in pairs(game.ReplicatedStorage.API:GetChildren()) do if v:IsA("RemoteFunction") then local A_B = "" -- Object Name local A_C = owner v:InvokeServer(A_B, A_C) end end
Hello, when I try to execute the script it fails and gives me the error I try to call a null value stack begin line 9?
local name = "Put the name of the player here " -- player name local owner = game:GetService("Players")[name] for i,v in pairs(game.ReplicatedStorage.API:GetChildren()) do if v:IsA("RemoteFunction") then local A_B = "A name of a object not a part/any class name/ name" -- Object Name local A_C = tostring(owner) -- <<<< Its making this a string so it wont be a object value v:InvokeServer(A_B, A_C) end end