Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help Attempt to call a nil value stack begin line 9?

Asked by 3 years ago

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?

0
A_B is nil. raid6n 2196 — 3y

1 answer

Log in to vote
-3
Answered by 3 years ago
Edited 3 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.
    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
0
Thank you very much, but now I have Player impersonation 10, I try to call nor value, I think I'll give up Waskiii1234 -5 — 3y
Ad

Answer this question