--Having trouble with a kill script:
script.Parent.ClickDetector.MouseClick:connect(function(player) game.Workspace.player.Torso:remove() end)
--(I want to kill the player by removing the torso and setting the players health to 0)
So, you're understanding parameters, which is awesome.
"player" isn't the Player's name, but it's the actual Player
So instead of...
script.Parent.ClickDetector.MouseClick:connect(function(player) game.Workspace.player.Torso:remove() end)
You would first get the Player's name (player.name), then use :FindFirstChild() to find any object with that specific name.
script.Parent.ClickDetector.MouseClick:connect(function(player) game.Workspace:FindFirstChild(player.Name).Torso:Destroy() end)
That should work, tell me if it doesn't!
script.Parent.ClickDetector.MouseClick:connect(function(player) player.Torso:Destroy() end)
Good Luck!