Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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


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?

1 comment

0

A_B is nil.

1 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

1 comment

0

Thank you very much, but now I have Player impersonation 10, I try to call nor value, I think I'll give up

This discussion is preserved as it was. New answers, comments, and votes are closed.