In this script, why is the head not being destroyed?
game.Players.PlayerAdded:connect(function(player)
player:WaitForDataReady()
player.Head:Destroy()
end)
In this script, why is the head not being destroyed?
game.Players.PlayerAdded:connect(function(player)
player:WaitForDataReady()
player.Head:Destroy()
end)
You can't get the head from the player, you must get it from character. For example. (In a local script inside the starterpack)
game.Players.PlayerAdded:connect(function(player)
player:WaitForDataReady()
player.Character.Head:Destroy()
end)
Try this
game.Workspace.Player.Head:Destroy()
EDITED!Should work
ROBLOX Wiki quote: "This item is deprecated. Do not use it for new work."
What does that mean!?
It means you are not supposed to use the :remove() method any more. Instead you should use :ClearAllChildren() or :Destroy().
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Ah, that makes sense. But unfortunately that doesn't work either for some reason. Nothing happens, no error in output.
Oh sorrym this isn't supposed to be in a LocalScript. I was going to do another script for you in a local script, but I changed my mind, this should be in the Workspace in a normal script.