script.Parent.ClickDetector.MouseClick:connect(function(player)
player.Head:remove()
end)
COMMUNITY QUESTION
Clickable brick won't work? [RESOLVED
1 answer
The problem is that the player is the player in players not the character in workspace so instead do
script.Parent.ClickDetector.MouseClick:connect(function(player)
player.Character.Head:remove()
end)
1 comment
0
Oh, I understand. Thanks
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Everything is there, it just won't work. Any ideas?
Remember to include any output when asking! You would have gotten something like, 'head is not a valid member of Player'