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

What is Argument 1 Missing Or Nil? Why is it in my output and how do i fix it?

Asked by 3 years ago

I am trying to copy make a simulator using Alivin Bloxs' simulator tutorials i am on the second part of his series where he makes the rebirth system. I finished all the scripting but when i tested it out it didn't work. In the out put it says " Argument 1 Missing Or Nil" I don't know what this means show please help me.

Script:

rebirthButtonInMenu.MouseButton1Click:Connect(function()
    local result = replicatedStorage.Remotes.Rebirth:InvokeServer()
    if result ==true then  
        rebirthButtonInMenu.Text = "Success"
        wait(1)
        rebirthButtonInMenu.Text = "Rebirth!!"
        elseif result == "NotEnoughStregnth" then
            rebirthButtonInMenu.Text = "Become more chubby"
            wait(1)
            rebirthButtonInMenu.Text = "Rebirth!!"
    end     

end) 


 rebirths:GetPropertyChangedSignal()("Value"):Connect(function()
fatToRebirth.Text = "You need at least "..math.floor((starterRebirthAmount + (rebirths.Value) * math.sqrt(100000000))).." fat to rebirth"
end)

0
RemoteFunctions need arguments to be passed through. spunkworks 110 — 3y
0
On line 16 you have rebirths:GetPropertyChangedSignal()("Value"), the first () is calling the GetPropertyChangedSignal function, however as it is just (), it is empty and causes an Argument 1 is Missing or nil error. centraltrains 60 — 3y

Answer this question