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

Why does it say MouseButton1Click is not a valid member of ClickDetector?

When I test out my group owner only door; in the output it says MouseButton1Click is not a valid member of ClickDetector. I have no clue how to fix this.

GroupId = 3348123

script.Parent.ClickDetector.MouseButton1Click:connect(function(p)
	if p:GetRankInGroup(3348123) ==255 then
	if script.Parent.Transparency == 0 then
		script.Parent.Transparency = 1
	script.Parent.CanCollide = false
	else
	script.Parent.Transparency = 0
	script.Parent.CanCollide = true
	end
	else
		
	end
end)

Please help me, thank you!

1 answer

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