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

Why won't this print a player's head's transparency when they join?

This is a serverscript in Workspace, I dont get an error.

game.Players.PlayerAdded:connect(function(player)
if player.Character then
print(player.Character.Head.Transparency)
end
end)

1 comment

0

I am getting a similar error, I have an if statement followed by 3-4 else-ifs, and none of the elseifs run, no errors in output either.

1 answer

✓ Accepted answer
game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function()
		print(player.Character.Head.Transparency)
	end)
end)

Try this, It should work

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