There is a function called GetPlayerFromCharacter(), but i want to do the opposite.
function GetCharacterFromPlayer(player) if player.Character then return player.Character end end --This function just returns the character if there is one.
You can also do player.Character, but it's better if you check if it isn't nil.
Short answer: You can use the Character property to access the character.
newpart.Position = GetCharacterFromPlayer(script.Parent.Parent.Parent).Head.Position
If i do this, i get an error: Character is not a valid member of Workspace.