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

how to fix the error code "...is not a valid member of RBXScriptSignal" ?

Asked by 3 years ago
Edited 3 years ago

im trying to spawn a block (with an other script) and delte it again with this script and it just keeps putting out error codes like the one in the titel

local Debris = game:GetService("Debris")
local nta = "nothing got added yet"

function lte2brickdestroy()
    workspace.lte1buttonscript.ChildAdded:Connect(function(instance)
        instance.Name = nta

        if nta == "lte2brick" then
            Debris:AddItem()
        end
    end)
end


game.Workspace.lead_to_exit1_button.ClickDetector.MouseClick:lte2brickdestroy()

1 answer

Log in to vote
0
Answered by 3 years ago

Change

game.Workspace.lead_to_exit1_button.ClickDetector.MouseClick:lte2brickdestroy()

To

game.Workspace.lead_to_exit1_button.ClickDetector.MouseClick:Connect(lte2brickdestroy)
0
click view source, the last right bracket is missing for some reason WINDOWS10XPRO 438 — 3y
0
REMEMBER CLICK VIEW SOURCEE WINDOWS10XPRO 438 — 3y
0
HOVER YOUR MOUSE TO THE LAST SCRIPT AND CLICK VIEW SOURCE WINDOWS10XPRO 438 — 3y
0
caps so you can see the comments WINDOWS10XPRO 438 — 3y
View all comments (2 more)
0
thanks now the error is gone Feuerwerko 0 — 3y
0
remember to accept the answer if it solves you question Gmorcad12345 434 — 3y
Ad

Answer this question