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

I am trying to print when someone clicks the brick... Its not working though?

Can You please help me?

script.Parent.ClickDetector(function(Clicked)
		local Player = game.Players.LocalPlayer
		if Player.Clicked == true then
		print("pressed")
	end
end)

1 comment

1

Clicked is not a value in a player lmao, just remove the whole player part and print it.

1 answer

✓ Accepted answer
script.Parent.ClickDetector.MouseClick:Connect(function(whom)
        local Player = game.Players.LocalPlayer
       if whom.Name == game.Players.LocalPlayer.Name then
        print("pressed")
    end
end)

should work now!

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