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

Clickable brick won't work? [RESOLVED

script.Parent.ClickDetector.MouseClick:connect(function(player)
	player.Head:remove()
	
end)

2 comments

0

Everything is there, it just won't work. Any ideas?

0

Remember to include any output when asking! You would have gotten something like, 'head is not a valid member of Player'

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.