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

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

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

Change

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

To

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

6 comments

0

click view source, the last right bracket is missing for some reason

0

REMEMBER CLICK VIEW SOURCEE

0

HOVER YOUR MOUSE TO THE LAST SCRIPT AND CLICK VIEW SOURCE

0

caps so you can see the comments

0

thanks now the error is gone

0

remember to accept the answer if it solves you question

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