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

I think I'm not targeting the player?

I'm not quite sure what's wrong with this script. Nothing happens at all (not even an error), but I think it might have to do with the script not targeting the player?

game.Players.PlayerAdded:connect(function(player)
	player:WaitForDataReady()
	player.Character.Head:Destroy()
	end)

1 answer

✓ Accepted answer

Try adding prints

print("Script running")
game.Players.PlayerAdded:connect(function(player)
	print("player added")
	player:WaitForDataReady()
	player.Character.Head:Destroy()
	print("player killed")
end)

Then you can more easily see where the problem is. If NOTHING prints, your script is probably disabled.

5 comments

0

You were right, I was testing it in Play Solo. However, I just went and tested it in a server and it still doesn't work. even added a few more things to happen but still no results.

0

Is there any output? Is the character nil or something?

0

No, it's all clear (aside from some stuff from my other scripts).

0

Edited it, read it now.

0

I am such an idiot..... It was disabled this entire time '-_-. Thanks for all your help with stupid old me!

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